diff options
author | chai <chaifix@163.com> | 2022-04-24 10:03:26 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2022-04-24 10:03:26 +0800 |
commit | 1ab081709bbba66a426371e07efe38bc36072453 (patch) | |
tree | 056c8ab496531b599928612bfcb65259cafadf78 /SurvivalTest/Assets/Scripts/Editor/EditorTools.cs | |
parent | d76c9cff59d3c8a65968058df992c39c2cdb44ad (diff) |
+ demo scene
Diffstat (limited to 'SurvivalTest/Assets/Scripts/Editor/EditorTools.cs')
-rw-r--r-- | SurvivalTest/Assets/Scripts/Editor/EditorTools.cs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/SurvivalTest/Assets/Scripts/Editor/EditorTools.cs b/SurvivalTest/Assets/Scripts/Editor/EditorTools.cs new file mode 100644 index 0000000..08cd3a1 --- /dev/null +++ b/SurvivalTest/Assets/Scripts/Editor/EditorTools.cs @@ -0,0 +1,21 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEditor; + +public static class EditorTools +{ + + [MenuItem("Tools/³¡¾°/²âÊÔ³¡¾° _F5")] + public static void OpenDemoScene() + { + UnityEditor.SceneManagement.EditorSceneManager.OpenScene("Assets/Resources/scenes/Demo.unity"); + } + + [MenuItem("Tools/³¡¾°/UI±à¼³¡¾° _F6")] + public static void OpenUIEditScene() + { + UnityEditor.SceneManagement.EditorSceneManager.OpenScene("Assets/Scenes/UIEditScene.unity"); + } + +} |