Super Knight : Enter the Dungeon
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using UnityEditor;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
public class CreateAssetBundles
|
|
|
|
|
{
|
|
|
|
|
[MenuItem("Assets/Build AssetBundles_Window")]
|
|
|
|
|
static void BuildAllAssetBundles_Window()
|
|
|
|
|
{
|
|
|
|
|
string assetBundleDirectory = "Assets/AssetBundles";
|
|
|
|
|
|
|
|
|
|
if (!Directory.Exists($"{assetBundleDirectory}/Window"))
|
|
|
|
|
{
|
|
|
|
|
Directory.CreateDirectory($"{assetBundleDirectory}/Window");
|
|
|
|
|
}
|
|
|
|
|
BuildPipeline.BuildAssetBundles($"{assetBundleDirectory}/Window", BuildAssetBundleOptions.None, BuildTarget.StandaloneWindows);
|
|
|
|
|
}
|
|
|
|
|
[MenuItem("Assets/Build AssetBundles_Android")]
|
|
|
|
|
static void BuildAllAssetBundles_Android()
|
|
|
|
|
{
|
|
|
|
|
string assetBundleDirectory = "Assets/AssetBundles";
|
|
|
|
|
if (!Directory.Exists($"{assetBundleDirectory}/Android"))
|
|
|
|
|
{
|
|
|
|
|
Directory.CreateDirectory($"{assetBundleDirectory}/Android");
|
|
|
|
|
}
|
|
|
|
|
BuildPipeline.BuildAssetBundles($"{assetBundleDirectory}/Android", BuildAssetBundleOptions.None, BuildTarget.Android);
|
|
|
|
|
}
|
|
|
|
|
}
|