Unity脚本打包android工程

using UnityEngine;
using System.Collections;
using UnityEditor;
 
public class NewBehaviourScript : Editor {
 
	[MenuItem("Tools/Build Google Project")]
	static public void BuildAssetBundles(){
		BuildPipeline.BuildPlayer(new string[]{ "Assets/Untitled.unity"} , Application.dataPath + "/../", BuildTarget.Android, BuildOptions.AcceptExternalModificationsToPlayer);
	}
}

posted @ 2015-12-02 13:44  00000000O  阅读(277)  评论(0编辑  收藏  举报