summaryrefslogtreecommitdiff
path: root/Assets/Tools/Editor/ShortcutHelper.cs
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-09-15 12:50:26 +0800
committerchai <chaifix@163.com>2021-09-15 12:50:26 +0800
commit98f31f197a126850a5878cd6e583ae6dbf64ab3d (patch)
tree207f726fb027c227d2fd58bd1bc340cb3a7eaf67 /Assets/Tools/Editor/ShortcutHelper.cs
parentad950c25abdf7f5a2f0428863d4035e9eb168fd5 (diff)
*rename
Diffstat (limited to 'Assets/Tools/Editor/ShortcutHelper.cs')
-rw-r--r--Assets/Tools/Editor/ShortcutHelper.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/Assets/Tools/Editor/ShortcutHelper.cs b/Assets/Tools/Editor/ShortcutHelper.cs
new file mode 100644
index 00000000..33cf29c5
--- /dev/null
+++ b/Assets/Tools/Editor/ShortcutHelper.cs
@@ -0,0 +1,31 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using UnityEditor;
+using UnityEditor.SceneManagement;
+
+public class ShortcutHelper
+{
+ [MenuItem("Erika/Scene/打开Saionji场景")]
+ static void OpenSaionjiScene()
+ {
+ string path = Application.dataPath + "/Scenes/Demo/FightDemoScene.unity";
+ if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
+ {
+ return;
+ }
+ EditorSceneManager.OpenScene(path);
+ }
+
+ [MenuItem("Erika/Scene/打开UMotion场景")]
+ static void OpenUMotionScene()
+ {
+ string path = Application.dataPath + "/Scenes/Demo/AnimationEditScene.unity";
+ if (!EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
+ {
+ return;
+ }
+ EditorSceneManager.OpenScene(path);
+ }
+
+} \ No newline at end of file