Table of Contents

Class Node

Namespace
Ofs
Assembly
Ofs.Api.dll

A capture-safe handle to a plugin node, obtained from Node() inside the node's NodeUi<TState> callback. A TState value cannot be captured by ref across an await, so async work captures this reference instead and calls Update<TState>(StateMutator<TState>) when it completes. The mutation is queued and applied on the main thread on the node's next UI pass — replace reference fields, don't mutate them in place.

public sealed class Node
Inheritance
object
Node

Methods

Update<TState>(StateMutator<TState>)

Queue a state mutation, applied on the main thread on this node's next UI pass. TState is inferred from the mutator's parameter.

public void Update<TState>(StateMutator<TState> mutator) where TState : struct

Parameters

mutator StateMutator<TState>

Type Parameters

TState