class_remotetransform2d.rst 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/RemoteTransform2D.xml.
  6. .. _class_RemoteTransform2D:
  7. RemoteTransform2D
  8. =================
  9. **Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. RemoteTransform2D pushes its own :ref:`Transform2D<class_Transform2D>` to another :ref:`Node2D<class_Node2D>` derived node in the scene.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. RemoteTransform2D pushes its own :ref:`Transform2D<class_Transform2D>` to another :ref:`Node2D<class_Node2D>` derived node (called the remote node) in the scene.
  15. It can be set to update another node's position, rotation and/or scale. It can use either global or local coordinates.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  22. | :ref:`NodePath<class_NodePath>` | :ref:`remote_path<class_RemoteTransform2D_property_remote_path>` | ``NodePath("")`` |
  23. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  24. | :ref:`bool<class_bool>` | :ref:`update_position<class_RemoteTransform2D_property_update_position>` | ``true`` |
  25. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  26. | :ref:`bool<class_bool>` | :ref:`update_rotation<class_RemoteTransform2D_property_update_rotation>` | ``true`` |
  27. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  28. | :ref:`bool<class_bool>` | :ref:`update_scale<class_RemoteTransform2D_property_update_scale>` | ``true`` |
  29. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  30. | :ref:`bool<class_bool>` | :ref:`use_global_coordinates<class_RemoteTransform2D_property_use_global_coordinates>` | ``true`` |
  31. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  32. .. rst-class:: classref-reftable-group
  33. Methods
  34. -------
  35. .. table::
  36. :widths: auto
  37. +--------+------------------------------------------------------------------------------------+
  38. | |void| | :ref:`force_update_cache<class_RemoteTransform2D_method_force_update_cache>`\ (\ ) |
  39. +--------+------------------------------------------------------------------------------------+
  40. .. rst-class:: classref-section-separator
  41. ----
  42. .. rst-class:: classref-descriptions-group
  43. Property Descriptions
  44. ---------------------
  45. .. _class_RemoteTransform2D_property_remote_path:
  46. .. rst-class:: classref-property
  47. :ref:`NodePath<class_NodePath>` **remote_path** = ``NodePath("")`` :ref:`🔗<class_RemoteTransform2D_property_remote_path>`
  48. .. rst-class:: classref-property-setget
  49. - |void| **set_remote_node**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
  50. - :ref:`NodePath<class_NodePath>` **get_remote_node**\ (\ )
  51. The :ref:`NodePath<class_NodePath>` to the remote node, relative to the RemoteTransform2D's position in the scene.
  52. .. rst-class:: classref-item-separator
  53. ----
  54. .. _class_RemoteTransform2D_property_update_position:
  55. .. rst-class:: classref-property
  56. :ref:`bool<class_bool>` **update_position** = ``true`` :ref:`🔗<class_RemoteTransform2D_property_update_position>`
  57. .. rst-class:: classref-property-setget
  58. - |void| **set_update_position**\ (\ value\: :ref:`bool<class_bool>`\ )
  59. - :ref:`bool<class_bool>` **get_update_position**\ (\ )
  60. If ``true``, the remote node's position is updated.
  61. .. rst-class:: classref-item-separator
  62. ----
  63. .. _class_RemoteTransform2D_property_update_rotation:
  64. .. rst-class:: classref-property
  65. :ref:`bool<class_bool>` **update_rotation** = ``true`` :ref:`🔗<class_RemoteTransform2D_property_update_rotation>`
  66. .. rst-class:: classref-property-setget
  67. - |void| **set_update_rotation**\ (\ value\: :ref:`bool<class_bool>`\ )
  68. - :ref:`bool<class_bool>` **get_update_rotation**\ (\ )
  69. If ``true``, the remote node's rotation is updated.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_RemoteTransform2D_property_update_scale:
  73. .. rst-class:: classref-property
  74. :ref:`bool<class_bool>` **update_scale** = ``true`` :ref:`🔗<class_RemoteTransform2D_property_update_scale>`
  75. .. rst-class:: classref-property-setget
  76. - |void| **set_update_scale**\ (\ value\: :ref:`bool<class_bool>`\ )
  77. - :ref:`bool<class_bool>` **get_update_scale**\ (\ )
  78. If ``true``, the remote node's scale is updated.
  79. .. rst-class:: classref-item-separator
  80. ----
  81. .. _class_RemoteTransform2D_property_use_global_coordinates:
  82. .. rst-class:: classref-property
  83. :ref:`bool<class_bool>` **use_global_coordinates** = ``true`` :ref:`🔗<class_RemoteTransform2D_property_use_global_coordinates>`
  84. .. rst-class:: classref-property-setget
  85. - |void| **set_use_global_coordinates**\ (\ value\: :ref:`bool<class_bool>`\ )
  86. - :ref:`bool<class_bool>` **get_use_global_coordinates**\ (\ )
  87. If ``true``, global coordinates are used. If ``false``, local coordinates are used.
  88. .. rst-class:: classref-section-separator
  89. ----
  90. .. rst-class:: classref-descriptions-group
  91. Method Descriptions
  92. -------------------
  93. .. _class_RemoteTransform2D_method_force_update_cache:
  94. .. rst-class:: classref-method
  95. |void| **force_update_cache**\ (\ ) :ref:`🔗<class_RemoteTransform2D_method_force_update_cache>`
  96. **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.
  97. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  98. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  99. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  100. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  101. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  102. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  103. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  104. .. |void| replace:: :abbr:`void (No return value.)`