Version 3.3.1.2

PropertyContextMenuDrawer class

Namespace: Sirenix.OdinInspector.Editor.Drawers
Assembly: Sirenix.OdinInspector.Editor
public static class PropertyContextMenuDrawer
Inheritance
  • System.Object
  • PropertyContextMenuDrawer

Methods

AddRightClickArea(InspectorProperty, Rect)
Adds the right click area.
public static void AddRightClickArea(InspectorProperty property, Rect rect)
Parameters
InspectorProperty property

UnityEngine.Rect rect

AddRightClickArea(InspectorProperty, Rect, Int32)
Adds the right click area.
public static void AddRightClickArea(InspectorProperty property, Rect rect, int id)
Parameters
InspectorProperty property

UnityEngine.Rect rect

System.Int32 id

FillUnityContextMenu(InspectorProperty, GenericMenu)
public static GenericMenu FillUnityContextMenu(InspectorProperty property, GenericMenu genericMenu)
Parameters
InspectorProperty property

UnityEditor.GenericMenu genericMenu

Returns
UnityEditor.GenericMenu

FillUnityContextMenu(SerializedProperty, GenericMenu)
public static GenericMenu FillUnityContextMenu(SerializedProperty property, GenericMenu genericMenu = null)
Parameters
UnityEditor.SerializedProperty property

UnityEditor.GenericMenu genericMenu

Returns
UnityEditor.GenericMenu