美文网首页
Unity常用测试代码

Unity常用测试代码

作者: 独步江雪 | 来源:发表于2020-11-23 11:13 被阅读0次
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using UnityEditor;
    
    namespace A
    {
    
       public class MenuItems
       {
    
           [MenuItem("Assets/_test/a", false, 1)]
           static void a()
           {
            
           }
           [MenuItem("Assets/_test/MainWindow", false, 1)]
           static void ShowMainWindow()
           {
    
               Window window = EditorWindow.GetWindow<Window>();
               window.titleContent = new GUIContent("WindowTitleName");
               window.Show();
           }
       }
       public class Window: EditorWindow
       {
    
           void OnGUI()
           {
    
           }
       }
    
    }
    

    相关文章

      网友评论

          本文标题:Unity常用测试代码

          本文链接:https://www.haomeiwen.com/subject/bnmmiktx.html