RemoteTransform2D

Hereda: Node2D < CanvasItem < Node < Object

RemoteTransform2D pushes its own Transform2D to another Node2D derived node in the scene.

Descripción

RemoteTransform2D pushes its own Transform2D to another Node2D 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.

Propiedades

NodePath

remote_path

NodePath("")

bool

update_position

true

bool

update_rotation

true

bool

update_scale

true

bool

use_global_coordinates

true

Métodos

void

force_update_cache()


Descripciones de Propiedades

NodePath remote_path = NodePath("") 🔗

El NodePath al nodo remoto, relativo a la posición del RemoteTransform2D en la escena.


bool update_position = true 🔗

  • void set_update_position(value: bool)

  • bool get_update_position()

Si es true, la posición del nodo remoto se actualiza.


bool update_rotation = true 🔗

  • void set_update_rotation(value: bool)

  • bool get_update_rotation()

Si es true, la rotación del nodo remoto se actualiza.


bool update_scale = true 🔗

  • void set_update_scale(value: bool)

  • bool get_update_scale()

Si es true, la rotación del nodo remoto se actualiza.


bool use_global_coordinates = true 🔗

  • void set_use_global_coordinates(value: bool)

  • bool get_use_global_coordinates()

Si es true, se utilizan las coordenadas globales. Si false, se utilizan las coordenadas locales.


Descripciones de Métodos

void force_update_cache() 🔗

RemoteTransform2D almacena el nodo remoto. Puede que no se dé cuenta si el nodo remoto desaparece; force_update_cache() le obliga a actualizar la caché de nuevo.