class in Unity.GraphToolkit.Editor
/
Inherits from:Unity.GraphToolkit.Editor.MenuContext
Argument passed to a contextual menu handler registered for a StateMachineMenuContext.StateMachine type.
A method decorated with StateMachineMenuAttribute, or with BlackboardMenuAttribute for a StateMachineMenuContext.StateMachine subclass, must take this type. For a Graph subclass, take GraphMenuContext instead, and for ConditionMenuAttribute take ConditionMenuContext.
| Property | Description |
|---|---|
| StateMachine | The state machine that owns the view the user right-clicked on. |
| Property | Description |
|---|---|
| ClickedObject | The element directly under the cursor at the time of the right-click, or null when the click landed on empty space or on an element that is not exposed through the public API. |
| MousePosition | World-space mouse position of the right-click. |
| Method | Description |
|---|---|
| AppendAction | Appends an entry to the contextual menu. |
| AppendSeparator | Appends a visual separator to the contextual menu. |