public static void CreateUIElementsUXML() { if (Config.Init()) { string path = PathEditorTool.GetSelectedPath(); if (PathEditorTool.AssetSavePathIsNullOrEmpty(path)) { return; } if (PathEditorTool.IsNotScriptPath(path)) { return; } CreateNewScript(path, UxmlName); } }
public static void CreateCSharpTemp() { if (Config.Init()) { string path = PathEditorTool.GetSelectedPath(); if (PathEditorTool.AssetSavePathIsNullOrEmpty(path)) { return; } if (PathEditorTool.IsNotScriptPath(path)) { return; } CreateNewScript(path, TemplateName); } }