Menu Items - Priority | Editor Scripting | C# | Unity Game Engine


MenuItems_Priority_Editor.cs
using UnityEngine;
using UnityEditor;

public class MenuItems_Priority_Editor
{
    [MenuItem("Priority Menu/Option 1", priority = 1)]
    public static void Option1Action()
    { }

    [MenuItem("Priority Menu/Option 2", priority = 101)]
    public static void Option2Action()
    { }

    [MenuItem("Priority Menu/Option 3", priority = 51)]
    public static void Option3Action()
    { }

    [MenuItem("Priority Menu/Option 4", priority = 2)]
    public static void Option4Action()
    { }
}