mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-22 17:45:16 +00:00
b660b4dcbd
* Loading improvements: prepwork for loading from assetbundles * note for sfx * cleaner code * correct type * put loaded assetbundle in the minigame data instead also lays groundwork for future localization stuff * add samurai slice gold, coin toss assetbundles * very messy "already loaded" checks * make Dj School load from assetbundle
17 lines
No EOL
507 B
C#
17 lines
No EOL
507 B
C#
using UnityEditor;
|
|
using UnityEngine;
|
|
using System.IO;
|
|
|
|
public class CreateAssetBundles
|
|
{
|
|
[MenuItem("Assets/Build AssetBundles")]
|
|
static void BuildAllAssetBundles()
|
|
{
|
|
string assetBundleDirectory = "Assets/StreamingAssets";
|
|
if (!Directory.Exists(Application.streamingAssetsPath))
|
|
{
|
|
Directory.CreateDirectory(assetBundleDirectory);
|
|
}
|
|
BuildPipeline.BuildAssetBundles(assetBundleDirectory, BuildAssetBundleOptions.None, EditorUserBuildSettings.activeBuildTarget);
|
|
}
|
|
} |