Last active
October 4, 2016 01:29
-
-
Save tsubaki/bfec2cf9f9901ce8aedb to your computer and use it in GitHub Desktop.
チャンクベースAssetBundleの生成
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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