Skip to content

Commit 6e767af

Browse files
committed
Changed windows menu selectors priority
1 parent ff75239 commit 6e767af

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Editor/Editors/Drawers/VariablePropertyDrawer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public override VisualElement CreatePropertyGUI(SerializedProperty property)
3333
var typeField = template.Q<EnumField>("Type");
3434
var customTypeField = template.Q<VisualElement>("CustomType");
3535

36-
typeField.Init(VariableType.Float);
36+
typeField.Init((VariableType)property.FindPropertyRelative("Type").intValue);
3737

3838
customTypeField.style.display = ((VariableType)typeField.value) == VariableType.Custom ? DisplayStyle.Flex : DisplayStyle.None;
3939

Editor/Editors/Windows/Migrator.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public MigratedItemElement(Migrator window, T toggledItem, string name)
150150

151151
public class Migrator : EditorWindow
152152
{
153-
[MenuItem(MSSConstants.WINDOW_PATH + "/Tools/Migrator")]
153+
[MenuItem(MSSConstants.WINDOW_PATH + "/Tools/Migrator", priority = 101)]
154154
private static void ShowWindow()
155155
{
156156
var window = GetWindow<Migrator>();

Editor/Editors/Windows/ModularShaderDebugger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public interface IModularShaderDebuggerTab
4545
/// </remarks>
4646
public class ModularShaderDebugger : EditorWindow
4747
{
48-
[MenuItem(MSSConstants.WINDOW_PATH + "/Modular Shader Debugger")]
48+
[MenuItem(MSSConstants.WINDOW_PATH + "/Modular Shader Debugger", priority = 5)]
4949
public static void ShowExample()
5050
{
5151
ModularShaderDebugger wnd = GetWindow<ModularShaderDebugger>();

Editor/Tools/EmbedLibraryWindow.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace VRLabs.ModularShaderSystem.Tools
1717
/// </summary>
1818
public class EmbedLibraryWindow : EditorWindow
1919
{
20-
[MenuItem(MSSConstants.WINDOW_PATH + "/Tools/Embed Library")]
20+
[MenuItem(MSSConstants.WINDOW_PATH + "/Tools/Embed Library", priority = 102)]
2121
public static void CreateWindow()
2222
{
2323
var window = GetWindow<EmbedLibraryWindow>();

0 commit comments

Comments
 (0)