CustomRenderNode
Node that delegates rendering to a user-provided function.
This is the escape hatch for users who need geometry beyond the built-in shapes. The renderFunction receives the accumulated RenderContext and the node's nodeId (for use in RenderCommand.ownerNodeId), and returns render commands that will be included in the scene's depth sorting and drawing.
Properties
Thread-safe snapshot of children for rendering and traversal. Updated atomically after Applier mutations complete (copy-on-write).
Parent node in the tree
Optional per-node render options override. When non-null, overrides the inherited render options for this node and its subtree. When null (default), inherits from the parent context.
Functions
Render this node and its children into the given accumulator list. Eliminates intermediate list allocations compared to a returning render() method.
Update the snapshot from the current mutable children list. Called by the Applier after structural mutations.