language
This commit is contained in:
@@ -22,28 +22,13 @@ namespace NBF
|
||||
ExcelToJsonWindow.GenConfig(false);
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
// [MenuItem("构建/配置表/读取")]
|
||||
// public static void Read()
|
||||
// {
|
||||
// var assets = EditorUtils.GetOrCreateAsset<ConfigAssets>(ConfigAssets.SavePath);
|
||||
//
|
||||
// var path = Path.Combine(Application.dataPath, "Resources/config", "Input.json");
|
||||
// var json = File.ReadAllText(path);
|
||||
//
|
||||
// JsonUtility.FromJsonOverwrite(json, assets);
|
||||
// EditorUtility.SetDirty(assets);
|
||||
// AssetDatabase.SaveAssets(); // 保存更改
|
||||
// AssetDatabase.Refresh();
|
||||
// }
|
||||
|
||||
// [MenuItem("构建/配置表/转json")]
|
||||
// public static void GenJson()
|
||||
// {
|
||||
// CfgAssets cfgAssets = AssetDatabase.LoadAssetAtPath<CfgAssets>("Assets/Resources/config/CfgAssets.asset");
|
||||
// var json = JsonUtility.ToJson(cfgAssets);
|
||||
// File.WriteAllText(Path.Combine(Application.dataPath, "Resources/config", "Input.json"), json);
|
||||
// // CfgAssets cfgAssets = Resources.Load<CfgAssets>("config/CfgAssets");
|
||||
// }
|
||||
[MenuItem("构建/配置表/导多语言")]
|
||||
public static void BuildLanguage()
|
||||
{
|
||||
ExcelToJsonWindow.GenLanguage();
|
||||
AssetDatabase.Refresh();
|
||||
}
|
||||
|
||||
#region 生成脚本
|
||||
|
||||
|
||||
3
Assets/Scripts/Configs/Language.meta
Normal file
3
Assets/Scripts/Configs/Language.meta
Normal file
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a74bb7a59dd4f689beec3add0e7c8c6
|
||||
timeCreated: 1749097649
|
||||
Reference in New Issue
Block a user