RemoteTransform
Copies this node's position, rotation or scale onto another node elsewhere in the scene, by name. For a camera target, a floor shadow, or a marker that must not inherit its subject's own rotation.
On this page
Add it
+ Add node → Remote Transform creates a node with it already on. Already have a node for it? Add component → RemoteTransformComponent.
From a script
A script on the same node writes these fields by name. RemoteTransformComponent is the name to pass.
rgs
set_text("RemoteTransformComponent", "target", "");
set_flag("RemoteTransformComponent", "position", true);
set_flag("RemoteTransformComponent", "rotation", false);
set_flag("RemoteTransformComponent", "scale", false);
set_point("RemoteTransformComponent", "offset", vec2(0.0, 0.0));
set_flag("RemoteTransformComponent", "enabled", true); Fields
| Field | Script name | Kind | Default | What it does |
|---|---|---|---|---|
| Target | target | text | empty | Name of the node this transform is copied onto. |
| Position | position | checkbox | on | Whether to copy the position. |
| Rotation | rotation | checkbox | off | Whether to copy the rotation. |
| Scale | scale | checkbox | off | Whether to copy the scale. |
| Offset | offset | two numbers (x, y) | (0, 0) | Added to the position after copying, in world units. |
| Enabled | enabled | checkbox | on | Whether it is copying right now. |