Table of Contents

Delegate NodeUi<TState>

Namespace
Ofs
Assembly
Ofs.Api.dll

The node's body UI (main thread). Draws the node's widgets — sliders/checkboxes for its TState fields, buttons, file pickers, status labels. s is the live state by ref: mutate it synchronously, replacing reference fields with new arrays/lists rather than mutating in place. For a deferred/async write (across an await) grab a capture-safe handle with Node() and call Update<TState>(StateMutator<TState>) when the work completes — a value type cannot be captured by ref across an await.

public delegate void NodeUi<TState>(Ui ui, ref TState s) where TState : struct

Parameters

ui Ui
The node's body UI (main thread). Draws the node's widgets — sliders/checkboxes for its TState fields, buttons, file pickers, status labels. s is the live state by ref: mutate it synchronously, replacing reference fields with new arrays/lists rather than mutating in place. For a deferred/async write (across an await) grab a capture-safe handle with and call when the work completes — a value type cannot be captured by ref across an await.
s TState
The node's body UI (main thread). Draws the node's widgets — sliders/checkboxes for its TState fields, buttons, file pickers, status labels. s is the live state by ref: mutate it synchronously, replacing reference fields with new arrays/lists rather than mutating in place. For a deferred/async write (across an await) grab a capture-safe handle with and call when the work completes — a value type cannot be captured by ref across an await.

Type Parameters

TState