private void OnEnable() { cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME); if (null == cfg) { cfg = new ConfigVO(); } }
/// <summary> /// 加载配置 /// </summary> public void LoadConfig() { _cfg = EditorConfigUtil.LoadConfig <HotResConfigVO>(CONFIG_NAME); if (null == _cfg) { _cfg = new HotResConfigVO(); } }
public IOSProjectInitConfig() { Cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME); if (null == Cfg) { Cfg = new ConfigVO(); SaveCfg(); } }
public IOSProjectInitModule(EditorWindow editorWin) : base(editorWin) { _cfg = EditorConfigUtil.LoadConfig <IOSProjectInitConfigVO>(CONFIG_NAME); frameworkToProjectList = _cfg.frameworkToProjectList; file2BuildList = _cfg.file2BuildList; setBuildProperty = _cfg.buildPropertyList; addPListInfo = _cfg.pListDataList; urlSchemeList = _cfg.urlSchemeList; appQueriesSchemeList = _cfg.appQueriesSchemeList; }
override protected void OnEnable() { _cfg = EditorConfigUtil.LoadConfig <IOSProjectInitConfigVO>(IOSProjectInitConfigVO.CONFIG_NAME); frameworkToProjectList = _cfg.frameworkToProjectList; file2BuildList = _cfg.file2BuildList; setBuildProperty = _cfg.buildPropertyList; addPListInfo = _cfg.pListDataList; urlSchemeList = _cfg.urlSchemeList; appQueriesSchemeList = _cfg.appQueriesSchemeList; }
Dictionary <string, AssetBundleItemVO> LoadConfig() { var tempList = EditorConfigUtil.LoadConfig <List <AssetBundleItemVO> >(CONFIG_NAME); //转成字典,方便查询 Dictionary <string, AssetBundleItemVO> dic = new Dictionary <string, AssetBundleItemVO>(); if (null != tempList) { foreach (var vo in tempList) { dic.Add(vo.assetbundle, vo); } } return(dic); }
private void OnEnable() { cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME); if (cfg.data.startupResGroups == null) { cfg.data.startupResGroups = new string[0]; } if (cfg.data.settingJump == null) { cfg.data.settingJump = new Dictionary <string, string>(); } if (cfg.data.startupParams == null) { cfg.data.startupParams = new Dictionary <string, string>(); } _startParamsDic.SetData(cfg.data.startupParams, "Key", "Value"); _settingJumpDic.SetData(cfg.data.settingJump, "版本号", "跳转地址"); }
public BuildSettingJsonModule(EditorWindow editorWin) : base(editorWin) { SetCfg(EditorConfigUtil.LoadConfig <SettingVO>(CONFIG_NAME)); }
protected override void OnEnable() { base.OnEnable(); SetCfg(EditorConfigUtil.LoadConfig <SettingVO>(CONFIG_NAME)); }
override protected void OnEnable() { base.OnEnable(); cfg = EditorConfigUtil.LoadConfig <ConfigVO>(CONFIG_NAME); }