AI-generated Key Takeaways
-
Node.TransformChangedListeneris an interface used for receiving callbacks when a node's transformation is altered. -
It includes a single method,
onTransformChanged, which is triggered immediately after a node's transformation changes. -
onTransformChangedprovides details about the node whose transformation changed and the node that initiated the change, which can be the same node or an ancestor. -
This listener facilitates actions or updates based on real-time changes in node positions, rotations, or scales within a scene.
Interface definition for callbacks to be invoked when the transformation of the node changes.
Public Methods
| abstract void |
onTransformChanged(Node node, Node originatingNode)
Notifies the listener that the transformation of the
Node has changed. |
Public Methods
public abstract void onTransformChanged (Node node, Node originatingNode)
Notifies the listener that the transformation of the Node has changed. Called right
after onTransformChange(Node).
The originating node is the most top-level node in the hierarchy that triggered the node
to change. It will always be either the same node or one of its' parents. i.e. if node A's
position is changed, then that will trigger onTransformChanged(Node, Node) to be
called for all of it's descendants with the originatingNode being node A.
Parameters
| node | the node that changed |
|---|---|
| originatingNode | the node that triggered the transformation to change |