Version 3.0.0.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

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