//-------∽-★-∽------∽-★-∽--------∽-★-∽Batch相关∽-★-∽--------∽-★-∽------∽-★-∽--------// //初始化打包图集设置 void InitBatchSetting() { JsonAsset jsonAsset = KAssetManager.GetJson(KAssetManager.AtlasBatchSettingPath); if (jsonAsset == null) { //没找到BatchSetting _batchNames = new string[] { "请选择图集名称" }; _batchIndice = 0; return; } JsonData data = jsonAsset.GetJsonData(); JsonData setting = data["setting"]; _batchNames = new string[setting.Count + 1]; _batchNames[0] = "请选择图集名称"; _batchIndice = 0; _batch2chlidren = new Dictionary <string, List <string> >(); int i = 1; foreach (JsonData part in setting) { string partname = part[0].ToString(); _batchNames[i] = partname; _batch2chlidren[partname] = new List <string>(); for (int j = 1; j < part.Count; j++) { _batch2chlidren[partname].Add(part[j].ToString()); } ++i; } }
public static JsonData GetUIJsonData(string name) { JsonAsset jsonAsset = GetUIJson(name); if (jsonAsset != null) { return(jsonAsset.GetJsonData()); } return(null); }