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