Unity

[Unity] 유니티 Editor 만드는 방법

usingsystem 2022. 11. 14. 21:05
728x90
#if UNITY_EDITOR
    //단축기 사용방법만든는 방법 % (Ctrl), # (Shift), & (Alt)
    [MenuItem("Tools/GenerateMap %#g")]
    static void HelloWord()
    {
        if (EditorUtility.DisplayDialog("Hello World", "Create?", "Create", "Cancel"))
        {
            new GameObject("Hellow World");
        }
    }
#endif
728x90