How to build AssetBundle No dependency tracking,but select BuildTarget ?
[MenuItem("Assets/Build AssetBundle From Selection - No dependency tracking")]
static void ExportResourceNoTrack () {
// Bring up save panel
string path = EditorUtility.SaveFilePanel ("Save Resource", "", "New Resource", "unity3d");
if (path.Length != 0) {
//Object[] selection = Selection.GetFiltered(typeof(Object), SelectionMode.DeepAssets);
BuildPipeline.BuildAssetBundle(Selection.activeObject, Selection.objects, path,BuildTarget .Android);
// Selection.objects = selection;
}
}
this function can not select BuildTarget ,i dot know why,thanks your help
↧