mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-30 03:32:47 +00:00
26f8c23c68
* Add Unity project * Generate asset bundles in project root * Rename Assets directory to Assetbundles * Add Unity project readme * Ignore this one extra assetbundle file that Unity generates
15 lines
554 B
C#
15 lines
554 B
C#
using UnityEditor;
|
|
using System.IO;
|
|
|
|
public class CreateAssetBundles {
|
|
[MenuItem("Assets/Build AssetBundles")]
|
|
static void BuildAllAssetBundles () {
|
|
string assetBundleDirectory = "../AssetBundles";
|
|
if (!Directory.Exists(assetBundleDirectory)) {
|
|
Directory.CreateDirectory(assetBundleDirectory);
|
|
}
|
|
BuildPipeline.BuildAssetBundles(assetBundleDirectory,
|
|
BuildAssetBundleOptions.None,
|
|
BuildTarget.StandaloneWindows);
|
|
}
|
|
} |