标签:universal targe tor 命名 android平台 idg board windows val
注意,BuildTarget tagetPlatform参数为BuildTarget.Android
using UnityEngine; using UnityEditor; public class BuildAssetBundlesExample: MonoBehaviour { [MenuItem("Example/Build Asset Bundles")] static void BuildABs() { // Put the bundles in a folder called "ABs" within the Assets folder. BuildPipeline.BuildAssetBundles("Assets/ABs", BuildAssetBundleOptions.None, BuildTarget.Android); } }
类型:Enumeration
Target build platform.
目标编译平台。
Note: This is an editor class. To use it you have to place your script in Assets/Editor inside your project folder. Editor classes are in the UnityEditor namespace so for C# scripts you need to add "using UnityEditor;" at the beginning of the script.
注意:这是一个编辑器类,如果想使用它你需要把它放到工程目录下的Assets/Editor文件夹下。编辑器类在UnityEditor命名空间下。所以当使用C#脚本时,你需要在脚本前面加上 "using UnityEditor"引用。
参见: BuildPipeline.BuildPlayer.
标签:universal targe tor 命名 android平台 idg board windows val
原文地址:http://www.cnblogs.com/eniac1946/p/7521666.html