Class ActionRuntimeState
Runtime state for a procedural action instance. Stores timing and custom data that persists across ticks.
Inherited Members
Namespace: Serenity.ProceduralExpression.Infrastructure.ProceduralActions
Assembly: Serenity.UnityProceduralExpression.Infrastructure.dll
Syntax
public class ActionRuntimeState
Constructors
ActionRuntimeState()
Declaration
public ActionRuntimeState()
Fields
CustomData
Custom data storage for action-specific state.
Declaration
public object CustomData
Field Value
| Type | Description |
|---|---|
| object |
ElapsedTime
Time elapsed since action started.
Declaration
public float ElapsedTime
Field Value
| Type | Description |
|---|---|
| float |
LastActivationTime
Last time the action was activated (for cooldown tracking).
Declaration
public float LastActivationTime
Field Value
| Type | Description |
|---|---|
| float |
StartTime
Time when the action started.
Declaration
public float StartTime
Field Value
| Type | Description |
|---|---|
| float |
Methods
Reset(float)
Resets the runtime state for a new action start.
Declaration
public void Reset(float currentTime)
Parameters
| Type | Name | Description |
|---|---|---|
| float | currentTime |