class_remotetransform2d.rst 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the RemoteTransform2D.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_RemoteTransform2D:
  5. RemoteTransform2D
  6. =================
  7. **Inherits:** :ref:`Node2D<class_node2d>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. RemoteTransform2D leads the :ref:`Transform2D<class_transform2d>` of another :ref:`CanvasItem<class_canvasitem>` derived Node in the scene.
  12. Member Variables
  13. ----------------
  14. .. _class_RemoteTransform2D_remote_path:
  15. - :ref:`NodePath<class_nodepath>` **remote_path** - The :ref:`NodePath<class_nodepath>` to the remote node, relative to the RemoteTransform2D's position in the scene.
  16. .. _class_RemoteTransform2D_update_position:
  17. - :ref:`bool<class_bool>` **update_position** - If ``true`` the remote node's position is tracked. Default value: ``true``.
  18. .. _class_RemoteTransform2D_update_rotation:
  19. - :ref:`bool<class_bool>` **update_rotation** - If ``true`` the remote node's rotation is tracked. Default value: ``true``.
  20. .. _class_RemoteTransform2D_update_scale:
  21. - :ref:`bool<class_bool>` **update_scale** - If ``true`` the remote node's scale is tracked. Default value: ``true``.
  22. .. _class_RemoteTransform2D_use_global_coordinates:
  23. - :ref:`bool<class_bool>` **use_global_coordinates** - If ``true`` global coordinates are used. If ``false`` local coordinates are used. Default value: ``true``.
  24. Description
  25. -----------
  26. RemoteTransform2D leads the :ref:`Transform2D<class_transform2d>` of another :ref:`CanvasItem<class_canvasitem>` derived Node (called the remote node) in the scene.
  27. It can be set to track another Node's position, rotation and/or scale. It can update using either global or local coordinates.