1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| using UnityEditor;
|
| public static class ToolBarExtersion {
|
| [MenuItem("Edit/工具栏/开始 %1",false,1)]
| static void Play() {
| EditorApplication.ExecuteMenuItem("Edit/Play");
| }
|
| [MenuItem("Edit/工具栏/暂停 %2",false,1)]
| static void Pause() {
| EditorApplication.ExecuteMenuItem("Edit/Pause");
| }
|
| [MenuItem("Edit/工具栏/逐帧 %3",false,1)]
| static void Step() {
| EditorApplication.ExecuteMenuItem("Edit/Step");
| }
| }
|
|