Ejemplo n.º 1
0
        private static void Pack()
        {
            List <PackRes_Def.BundleData> bundleDataList;

            if (packSetting.policy == PackRes_Def.packPolicy_configFile)
            {
                bundleDataList = InitCfgDataList();
            }
            else if (packSetting.policy == PackRes_Def.packPolicy_standalone)
            {
                bundleDataList = InitStandaloneDataList();
            }
            else
            {
                Debug.LogError("PackTexture not support policy: " + packSetting.policy);
                return;
            }

            foreach (PackRes_Def.BundleData data in bundleDataList)
            {
                PackRes_Common.PrintObjectInfo(data);
            }

            Dictionary <string, string> idxMap = new Dictionary <string, string>();

            PackRes_Common.PackBundle(bundleDataList, packSetting.GetPlatformBundleFullPath(platform), platform, idxMap);

            PackRes_Common.ExpIdxFile(packSetting.GetPlatformIdxFileFullPath(platform), idxMap, packSetting.index_file);
        }