Attachment class

Grafts a host-scene node (and its subtree) into a prefab instance under one of the prefab's internal nodes. node is a real node in the host document (so it edits and deletes like any other node); parent is the prefab-local node it attaches under, or null to attach under the instance's root.

This is how content added to an instance (a prop on a rig's hand bone) stays fully editable: the node lives in the host scene, and composition moves it under the prefab node at realize time.

Constructors

Attachment(LocalId node, {LocalId? parent})
Attaches host node node under prefab-local parent.

Properties

hashCode int
The hash code for this object.
no setterinherited
node LocalId
The host-document node id grafted into the instance.
final
parent LocalId?
The prefab-local node this attaches under, or null for the instance root.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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