RSX Code Reference
    Preparing search index...
    • rsx
    • CarbonGraphExecutionState

    Class CarbonGraphExecutionState

    The execution state for a carbon graph.

    Hierarchy (View Summary)

    Index
    _executionCache: Map<GraphPin, GraphStateValue>
    _executionCacheTargetUUID: bigint
    _inputVariableData: Map<bigint, GraphStateValue>
    _nodeValues: WeakMap<GraphNode, GraphStateValue>
    _pinValues: WeakMap<GraphPin, GraphStateValue>
    _variableValues: WeakMap<GraphVariable, GraphStateValue>

    The CarbonComponentBase that is executing the CarbonGraph.

    eventSubscribers: Map<Function, () => void>

    A set of all active event subscribers. Must be cleaned up when the graph finishes execution.

    The SceneInstance which is executing the CarbonGraph.

    sceneObject: SceneObject

    The SceneObject which is executing the CarbonGraph.

    • Sets the next node to be executed.

      Parameters

      Returns void

      This is an important call to optimize the execution of expression trees. Values and nodes that are visited multiple times from the same node will require full evaluation of the tree until the lowest level, unless this function is called to mark the current node as executing. It allows the graph system to cache all retrieves values and each expression must only be visited once.