RemoteTransform2D

Inherits: Node2D < CanvasItem < Node < Object Transform2D to another CanvasItem derived Node in the scene.

Description

Transform2D to another CanvasItem derived Node (called the remote node) in the scene. It can be set to update another Node’s position, rotation and/or scale. It can use either global or local coordinates.

Properties

Methods

Property Descriptions

  • NodePath remote_path NodePath to the remote node, relative to the RemoteTransform2D’s position in the scene.

  • bool update_position true, the remote node’s position is updated.

  • bool update_rotation true, the remote node’s rotation is updated.

  • bool update_scale true, the remote node’s scale is updated.

  • bool use_global_coordinates true, global coordinates are used. If false, local coordinates are used.

    Method Descriptions

  • force_update_cache ( ) RemoteTransform2D caches the remote node. It may not notice if the remote node disappears; force_update_cache forces it to update the cache again.