Exemplo n.º 1
0
        // [MenuItem("Assets/GFrame/Asset/构建AB_IOS")]
        // public static void BuildAllAssetBundlesIOS()
        // {
        //     AssetBundleBuilder.BuildAB(outPath + "/IOS", BuildTarget.iOS);
        // }

        // [MenuItem("Assets/GFrame/Asset/构建AB_Android")]
        // public static void BuildAllAssetBundlesAndroid()
        // {
        //     AssetBundleBuilder.BuildAB(outPath + "/Android", BuildTarget.Android);
        // }

        #region 构建 AssetDataTable
        //[MenuItem("Assets/GFrame/Asset/生成Asset清单")]
        private static void BuildDataTable()
        {
            Log.i("#Start BuildDataTable");
            AssetDataTable table = new AssetDataTable();

            ProcessAssetBundleRes(table, null);
            table.Save();
        }
Exemplo n.º 2
0
        public static void BuildDataTable()
        {
            Log.i("Start BuildAssetDataTable!");
            AssetDataTable table = new AssetDataTable();

            ProcessAssetBundleRes(table, null);

            table.Save(ProjectPathConfig.absExportRootFolder);
        }
Exemplo n.º 3
0
        public static void BuildDataTable()
        {
            AssetDataTable table = new AssetDataTable();

            ProcessAssetBundleRes(table);

            table.Save(ProjectPathConfig.absExportRootFolder);
            AssetDatabase.Refresh();
        }
Exemplo n.º 4
0
        public static void BuildTableConfigTable()
        {
            Log.i("Start BuildTableConfigTable!");
            AssetDataTable table  = new AssetDataTable();
            string         folder = Application.dataPath + "/" + ProjectPathConfig.DEFAULT_TABLE_EXPORT_PATH;

            ProcessTableConfig(table, folder);

            table.Save(FilePath.streamingAssetsPath);
        }
Exemplo n.º 5
0
        public static void BuildDataTable()
        {
            Log.i("Start BuildAssetDataTable!");
            AssetDataTable table = AssetDataTable.Create();

            ProcessAssetBundleRes(table);

            string filePath =
                IOUtils.CreateDirIfNotExists(FilePath.streamingAssetsPath + FrameworkConfigData.RELATIVE_AB_ROOT_FOLDER) +
                FrameworkConfigData.EXPORT_ASSETBUNDLE_CONFIG_FILENAME;

            table.Save(filePath);
            AssetDatabase.Refresh();
        }