Skip to content

Instantly share code, notes, and snippets.

@tsubaki
Last active October 4, 2016 01:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsubaki/bfec2cf9f9901ce8aedb to your computer and use it in GitHub Desktop.
Save tsubaki/bfec2cf9f9901ce8aedb to your computer and use it in GitHub Desktop.
チャンクベースAssetBundleの生成
using UnityEngine;
using System.Collections;
using UnityEditor;
using System.IO;
public class ExportAssetBundle
{
[MenuItem("Assetbundle/Export")]
static void Export()
{
Directory.CreateDirectory(Application.streamingAssetsPath);
BuildPipeline.BuildAssetBundles(
Application.streamingAssetsPath,
BuildAssetBundleOptions.ChunkBasedCompression);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment