Esempio n. 1
0
        private void CleanEditorConfigData()
        {
            foreach (var platformData in _editorConfigData.PlatformDatas)
            {
                // save config
                if (platformData.ConfigData != null)
                {
                    SaveConfigData(platformData);
                }
            }

            SaveEditorConfigData(_editorConfigData);
            _editorConfigData = null;

            AssetDatabase.Refresh();
        }
Esempio n. 2
0
        private void InitEditorConfigData()
        {
            _editorConfigData = LoadEditorConfigData();

            var assetBundleNames = AssetDatabase.GetAllAssetBundleNames();

            foreach (var platformData in _editorConfigData.PlatformDatas)
            {
                // load config
                LoadConfigData(platformData);

                // asset bundle datas
                InitAssetBundleDatas(platformData, assetBundleNames);
            }

            // current platform
            InitCurrPlatform();
        }
Esempio n. 3
0
        private void SaveEditorConfigData(ResourceEditorConfigData editorConfigData)
        {
            var fullPath = ResourceOutputLocation.EditorConfigFullFilePath;

            CocoData.SaveToJsonFile(editorConfigData, fullPath, true);
        }