class_remotetransform2d.rst 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the RemoteTransform2D.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_RemoteTransform2D:
  6. RemoteTransform2D
  7. =================
  8. **Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. RemoteTransform2D pushes its own :ref:`Transform2D<class_Transform2D>` to another :ref:`CanvasItem<class_CanvasItem>` derived Node in the scene.
  13. Properties
  14. ----------
  15. +---------------------------------+----------------------------------------------------------------------------------------+--------------+
  16. | :ref:`NodePath<class_NodePath>` | :ref:`remote_path<class_RemoteTransform2D_property_remote_path>` | NodePath("") |
  17. +---------------------------------+----------------------------------------------------------------------------------------+--------------+
  18. | :ref:`bool<class_bool>` | :ref:`update_position<class_RemoteTransform2D_property_update_position>` | true |
  19. +---------------------------------+----------------------------------------------------------------------------------------+--------------+
  20. | :ref:`bool<class_bool>` | :ref:`update_rotation<class_RemoteTransform2D_property_update_rotation>` | true |
  21. +---------------------------------+----------------------------------------------------------------------------------------+--------------+
  22. | :ref:`bool<class_bool>` | :ref:`update_scale<class_RemoteTransform2D_property_update_scale>` | true |
  23. +---------------------------------+----------------------------------------------------------------------------------------+--------------+
  24. | :ref:`bool<class_bool>` | :ref:`use_global_coordinates<class_RemoteTransform2D_property_use_global_coordinates>` | true |
  25. +---------------------------------+----------------------------------------------------------------------------------------+--------------+
  26. Methods
  27. -------
  28. +------+------------------------------------------------------------------------------------------+
  29. | void | :ref:`force_update_cache<class_RemoteTransform2D_method_force_update_cache>` **(** **)** |
  30. +------+------------------------------------------------------------------------------------------+
  31. Description
  32. -----------
  33. RemoteTransform2D pushes its own :ref:`Transform2D<class_Transform2D>` to another :ref:`CanvasItem<class_CanvasItem>` derived Node (called the remote node) in the scene.
  34. It can be set to update another Node's position, rotation and/or scale. It can use either global or local coordinates.
  35. Property Descriptions
  36. ---------------------
  37. .. _class_RemoteTransform2D_property_remote_path:
  38. - :ref:`NodePath<class_NodePath>` **remote_path**
  39. +-----------+------------------------+
  40. | *Default* | NodePath("") |
  41. +-----------+------------------------+
  42. | *Setter* | set_remote_node(value) |
  43. +-----------+------------------------+
  44. | *Getter* | get_remote_node() |
  45. +-----------+------------------------+
  46. The :ref:`NodePath<class_NodePath>` to the remote node, relative to the RemoteTransform2D's position in the scene.
  47. .. _class_RemoteTransform2D_property_update_position:
  48. - :ref:`bool<class_bool>` **update_position**
  49. +-----------+----------------------------+
  50. | *Default* | true |
  51. +-----------+----------------------------+
  52. | *Setter* | set_update_position(value) |
  53. +-----------+----------------------------+
  54. | *Getter* | get_update_position() |
  55. +-----------+----------------------------+
  56. If ``true``, the remote node's position is updated.
  57. .. _class_RemoteTransform2D_property_update_rotation:
  58. - :ref:`bool<class_bool>` **update_rotation**
  59. +-----------+----------------------------+
  60. | *Default* | true |
  61. +-----------+----------------------------+
  62. | *Setter* | set_update_rotation(value) |
  63. +-----------+----------------------------+
  64. | *Getter* | get_update_rotation() |
  65. +-----------+----------------------------+
  66. If ``true``, the remote node's rotation is updated.
  67. .. _class_RemoteTransform2D_property_update_scale:
  68. - :ref:`bool<class_bool>` **update_scale**
  69. +-----------+-------------------------+
  70. | *Default* | true |
  71. +-----------+-------------------------+
  72. | *Setter* | set_update_scale(value) |
  73. +-----------+-------------------------+
  74. | *Getter* | get_update_scale() |
  75. +-----------+-------------------------+
  76. If ``true``, the remote node's scale is updated.
  77. .. _class_RemoteTransform2D_property_use_global_coordinates:
  78. - :ref:`bool<class_bool>` **use_global_coordinates**
  79. +-----------+-----------------------------------+
  80. | *Default* | true |
  81. +-----------+-----------------------------------+
  82. | *Setter* | set_use_global_coordinates(value) |
  83. +-----------+-----------------------------------+
  84. | *Getter* | get_use_global_coordinates() |
  85. +-----------+-----------------------------------+
  86. If ``true``, global coordinates are used. If ``false``, local coordinates are used.
  87. Method Descriptions
  88. -------------------
  89. .. _class_RemoteTransform2D_method_force_update_cache:
  90. - void **force_update_cache** **(** **)**
  91. ``RemoteTransform2D`` caches the remote node. It may not notice if the remote node disappears; :ref:`force_update_cache<class_RemoteTransform2D_method_force_update_cache>` forces it to update the cache again.