예제 #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);
     }
 }