Skip to content

ManipulateLocalFloatVariableAction ​

Inherits: EventAction < Resource

Action to manipulate a local float variable

Properties ​

Stringvariable_key""
FloatOperationoperationFloatOperation.ADD
floatamount1.0

Methods ​

Stringget_function_description()
Dictionarysave()
voidload_data( data: Dictionary )

Enumerations ​

enum FloatOperation ​

The options of float operation: add, subtract, multiply, divide.

  • ADD = 0
  • SUBTRACT = 1
  • MULTIPLY = 2
  • DIVIDE = 3

Property descriptions ​

String variable_key = "" ​

The name of the local variable.

FloatOperation operation = FloatOperation.ADD ​

What to do with the variable (add, subtract, multiply or divide).

float amount = 1.0 ​

The number for the operation.

Method descriptions ​

String get_function_description() ​

The sentence the editor shows for the action, with {placeholders} for its values.

Dictionary save() ​

The state of the action for a save.

void load_data( data: Dictionary ) ​

Restores the state of the action from a save.