ActionVariableCreateMenu
Editor popup menu for creating new dynamic action variables with type and name selection.
Definition
Namespace: Paragon.Core.ActionSystem.Editor
Assembly: Paragon.Editor.dll
public class ActionVariableCreateMenuDescription
ActionVariableCreateMenu provides a popup interface for adding new dynamic variables to an ActionVariables container. It displays a type selector with common variable types and a text field for naming the variable.
Supported Variable Types
Integer
int
Float
float
String
string
Bool
bool
Vector2
Vector2
Vector3
Vector3
GameObject
GameObject
Transform
Transform
Component
Component
Action
Action
Constructor
ActionVariableCreateMenu(ActionVariablesDrawer)
Creates a new create menu instance.
drawer
ActionVariablesDrawer
The parent drawer managing the variables
Methods
Show(Rect)
Displays the popup menu at the specified position.
buttonRect
Rect
Screen position to anchor the popup
Validation
Variable names must:
Start with a letter or underscore
Contain only alphanumeric characters, underscores, or spaces
Be unique within the
ActionVariablescontainer
The "Add Variable" button is disabled and shows red when validation fails.
See Also
Last updated
Was this helpful?