本篇接着上一篇.上篇中说到的4步的代码分别如下所示: (1)将资源打包成assetbundle,并放到自定目录下 using UnityEditor; using UnityEngine; using System.IO; using System.Collections; using System.Collections.Generic; public class CreateAssetBundle { public static void Execute(UnityEditor.BuildT…
脚本应该放在Editor文件夹下 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class BuildAssetBundle { [MenuItem("BuildAB/BuildABToWin64/LZMA(体积小,加载慢)")] private static void BuildABsToWin64_LZMA() { //…
资源打包脚本,放到Assets\Editor 文件夹下 using UnityEngine; using System.Collections; using UnityEditor; using System.IO; public class assetPack : Editor { /* [MenuItem("Custom Editor/Build AssetBundle From Selection - Track dependencies")] static void Expor…