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 ActionVariableCreateMenu

Description

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.

circle-info

This class is used internally by ActionVariablesDrawer and appears when clicking the "Add Variable" button.

Supported Variable Types

Display Name
Type

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.

Parameter
Type
Description

drawer

ActionVariablesDrawer

The parent drawer managing the variables

Methods

Show(Rect)

Displays the popup menu at the specified position.

Parameter
Type
Description

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 ActionVariables container

circle-exclamation

See Also

Last updated

Was this helpful?