mirror of
https://github.com/RHeavenStudioPlus/HeavenStudioPlus.git
synced 2024-11-29 04:53:06 +00:00
0c3251d4b9
add assetbundles to gitignore
22 lines
No EOL
634 B
C#
22 lines
No EOL
634 B
C#
using System.IO;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using UnityEditor;
|
|
using UnityEditor.Build;
|
|
using UnityEditor.Build.Reporting;
|
|
using UnityEngine;
|
|
|
|
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);
|
|
}
|
|
} |