DynamicVariable

Internal variable implementation that stores values directly in memory.

Definition

Namespace: Paragon.Core.ActionSystem Assembly: Paragon.dll Access: internal

[Serializable]
internal sealed class DynamicVariable : Variable

Inheritance: Variable → DynamicVariable

Description

DynamicVariable stores variable values directly as serialized objects using Odin Serializer. This is used for variables created at runtime through the editor interface rather than backed by fields on actions.

circle-info

Dynamic variables are created when using the "Add Variable" button in ActionVariables inspector.

Constructor

DynamicVariable(Type, string, object)

Creates a new dynamic variable with optional initial value.

public DynamicVariable(Type type, string name, object value = default)
Parameter
Type
Description

type

Type

The value type

name

string

The variable name

value

object

Optional initial value

Methods

SetValue(object)

Stores the value directly in memory.

GetValue()

Retrieves the stored value.

Returns: object — The stored value

See Also

Last updated

Was this helpful?