コード例 #1
0
        public static void BuildManifest()
        {
            if (EditorApplication.isCompiling)
            {
                Debug.LogError("代码正在编译中,请重试.....");
                return;
            }

            List <AssetBundleBuild> builds = BaseBuild.GetBuilds();

            if (builds == null)
            {
                Debug.LogError("manifest打包失败。请检查错误!");
            }
            else
            {
                BuildMainfest manifest = new BuildMainfest(builds);
            }
        }
コード例 #2
0
        public static void BuildAssetBundles()
        {
            if (EditorApplication.isCompiling)
            {
                Debug.LogError("代码正在编译中,请重试.....");
                return;
            }
            //添加资源
            List <AssetBundleBuild> builds = BaseBuild.GetBuilds();

            BuildMainfest manifest = new BuildMainfest(builds);

            if (manifest.BuildManifestIsSuccess && builds != null)
            {
                BuildingAssetBundles.BuildAssetBundles(builds);
            }
            else
            {
                Debug.LogError("manifest打包失败。请检查错误!");
            }
        }