diff options
author | chai <chaifix@163.com> | 2020-11-02 19:53:12 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2020-11-02 19:53:12 +0800 |
commit | 3708d0a07ce43c3d98a0171eacfa9c370c873f96 (patch) | |
tree | 728f72bd8e6c464c6f56db7b08755031f685c45c /Assets/Editor/Tools/ShortcutHelper.cs | |
parent | 64061aee5d7849f348f07b78fc3f96ad7555c147 (diff) |
*受击
Diffstat (limited to 'Assets/Editor/Tools/ShortcutHelper.cs')
-rw-r--r-- | Assets/Editor/Tools/ShortcutHelper.cs | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Assets/Editor/Tools/ShortcutHelper.cs b/Assets/Editor/Tools/ShortcutHelper.cs new file mode 100644 index 00000000..9000e738 --- /dev/null +++ b/Assets/Editor/Tools/ShortcutHelper.cs @@ -0,0 +1,32 @@ +using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using UnityEditor;
+using UnityEditor.SceneManagement;
+
+public class ShortcutHelper
+{
+ [MenuItem("Erika/Scene/打开Saionji场景 _F5")]
+ static void OpenSaionjiScene()
+ {
+ string path = Application.dataPath + "/Scenes/Demo/SaionjiShowOff.unity";
+ if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
+ {
+ return;
+ }
+ EditorSceneManager.OpenScene(path);
+ }
+
+ [MenuItem("Erika/Scene/打开UMotion场景 _F6")]
+ static void OpenUMotionScene()
+ {
+ string path = Application.dataPath + "/Scenes/Demo/AnimationEditScene.unity";
+ if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
+ {
+ return;
+ }
+ EditorSceneManager.OpenScene(path);
+ }
+
+
+}
|