NodeSpec class
A node in the document's scene graph.
Identity is the stable id; name is a non-identifying label kept for animation binding and name lookup. Hierarchy is by children id list. A node is either a plain node or, when instance is non-null, a prefab instance.
Constructors
-
NodeSpec({required LocalId id, String name = '', TransformSpec? transform, List<
LocalId> ? children, List<ComponentSpec> ? components, int layers = 1, LocalId? skin, PrefabInstanceSpec? instance, bool excludeFromWindingParity = false, bool visible = true}) -
Creates a node with the given stable
id.
Properties
-
children
→ List<
LocalId> -
Child node ids, in order.
final
-
components
→ List<
ComponentSpec> -
The components attached to this node.
final
- excludeFromWindingParity ↔ bool
-
Whether this node's mirror transform is excluded from winding-parity
tracking. Set on handedness-adapter nodes (a
scale(1, 1, -1)that converts between authoring spaces rather than mirroring content), so the renderer does not flip triangle winding under it.getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- id → LocalId
-
This node's stable, document-scoped id.
final
- instance ↔ PrefabInstanceSpec?
-
Non-null when this node is a prefab instance.
getter/setter pair
- layers ↔ int
-
The render-layer bitmask (defaults to layer 0).
getter/setter pair
- name ↔ String
-
A non-identifying label (used for animation binding and name lookup).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- skin ↔ LocalId?
-
The skin bound to this node, or null.
getter/setter pair
- transform ↔ TransformSpec
-
The node's local transform.
getter/setter pair
- visible ↔ bool
-
Whether this node (and so its subtree) renders. Hidden nodes still
realize and tick; only drawing is skipped.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited