您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
45 行
1.3 KiB
45 行
1.3 KiB
using UnityEditor;
|
|
|
|
namespace UIWidgets.Tests {
|
|
public static class Menu {
|
|
[MenuItem("UIWidgetsTests/CanvasAndLayers")]
|
|
public static void canvasAndLayers() {
|
|
EditorWindow.GetWindow(typeof(CanvasAndLayers));
|
|
}
|
|
|
|
[MenuItem("UIWidgetsTests/RenderBoxes")]
|
|
public static void renderBoxes() {
|
|
EditorWindow.GetWindow(typeof(RenderBoxes));
|
|
}
|
|
|
|
[MenuItem("UIWidgetsTests/RenderParagraph")]
|
|
public static void renderRenderParagraph() {
|
|
EditorWindow.GetWindow(typeof(Paragraph));
|
|
}
|
|
|
|
[MenuItem("UIWidgetsTests/Gestures")]
|
|
public static void gestures() {
|
|
EditorWindow.GetWindow(typeof(Gestures));
|
|
}
|
|
|
|
[MenuItem("UIWidgetsTests/RenderEditable")]
|
|
public static void renderEditable() {
|
|
EditorWindow.GetWindow(typeof(RenderEditable));
|
|
}
|
|
|
|
[MenuItem("UIWidgetsTests/Widgets")]
|
|
public static void renderWidgets() {
|
|
EditorWindow.GetWindow(typeof(Widgets));
|
|
}
|
|
|
|
[MenuItem("UIWidgetsTests/Show SceneViewTests")]
|
|
public static void showSceneView() {
|
|
SceneViewTests.show();
|
|
}
|
|
|
|
[MenuItem("UIWidgetsTests/Hide SceneViewTests")]
|
|
public static void hideSceneView() {
|
|
SceneViewTests.hide();
|
|
}
|
|
}
|
|
}
|