ActionVariableReferenceMenu
Editor popup menu for binding an action variable to reference another variable from a parent action.
Definition
Namespace: Paragon.Core.ActionSystem.Editor
Assembly: Paragon.Editor.dll
public class ActionVariableReferenceMenuDescription
ActionVariableReferenceMenu provides a popup interface for selecting which parent variable an ActionVariable should reference. It traverses the action hierarchy to find compatible variables based on type matching.
Constructor
ActionVariableReferenceMenu(ActionVariableDrawer)
Creates a new reference menu instance.
public ActionVariableReferenceMenu(ActionVariableDrawer drawer)drawer
ActionVariableDrawer
The parent drawer managing the variable
Methods
Show(Rect)
Displays the popup menu at the specified position.
buttonRect
Rect
Screen position to anchor the popup
Behavior
When displayed, the menu:
Traverses parent actions in the inspector hierarchy
Collects all
ActionVariablescontainers from parent actionsFilters variables by type compatibility with the current variable
Displays selectable options including "None" to clear references
Type Matching
A variable is included in the selection if its type is assignable to the current variable's type. This allows selecting base types when the variable expects a derived type.
See Also
Last updated
Was this helpful?