mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
[+] EditorExtUtil
This commit is contained in:
@@ -142,13 +142,13 @@ namespace TEngine
|
||||
#endif
|
||||
}
|
||||
|
||||
public static void SaveTblConfig(ScriptableObject confg)
|
||||
public static void SaveTblConfig(ScriptableObject config)
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
EditorUtility.SetDirty(confg);
|
||||
EditorUtility.SetDirty(config);
|
||||
AssetDatabase.SaveAssets();
|
||||
AssetDatabase.Refresh();
|
||||
var path = AssetDatabase.GetAssetPath(confg);
|
||||
var path = AssetDatabase.GetAssetPath(config);
|
||||
AssetDatabase.ImportAsset(path);
|
||||
AssetDatabase.ImportAsset(path.Replace(".asset", ".csv"));
|
||||
EditorWindow.focusedWindow?.ShowNotification(new GUIContent("Done"));
|
||||
|
Reference in New Issue
Block a user