class_remotetransform2d.rst 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  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:`CanvasItem<class_CanvasItem>` derived Node in the scene.
  11. Description
  12. -----------
  13. RemoteTransform2D pushes its own :ref:`Transform2D<class_Transform2D>` to another :ref:`CanvasItem<class_CanvasItem>` derived Node (called the remote node) in the scene.
  14. It can be set to update another Node's position, rotation and/or scale. It can use either global or local coordinates.
  15. Properties
  16. ----------
  17. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  18. | :ref:`NodePath<class_NodePath>` | :ref:`remote_path<class_RemoteTransform2D_property_remote_path>` | ``NodePath("")`` |
  19. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  20. | :ref:`bool<class_bool>` | :ref:`update_position<class_RemoteTransform2D_property_update_position>` | ``true`` |
  21. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  22. | :ref:`bool<class_bool>` | :ref:`update_rotation<class_RemoteTransform2D_property_update_rotation>` | ``true`` |
  23. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  24. | :ref:`bool<class_bool>` | :ref:`update_scale<class_RemoteTransform2D_property_update_scale>` | ``true`` |
  25. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  26. | :ref:`bool<class_bool>` | :ref:`use_global_coordinates<class_RemoteTransform2D_property_use_global_coordinates>` | ``true`` |
  27. +---------------------------------+----------------------------------------------------------------------------------------+------------------+
  28. Methods
  29. -------
  30. +------+------------------------------------------------------------------------------------------+
  31. | void | :ref:`force_update_cache<class_RemoteTransform2D_method_force_update_cache>` **(** **)** |
  32. +------+------------------------------------------------------------------------------------------+
  33. Property Descriptions
  34. ---------------------
  35. .. _class_RemoteTransform2D_property_remote_path:
  36. - :ref:`NodePath<class_NodePath>` **remote_path**
  37. +-----------+------------------------+
  38. | *Default* | ``NodePath("")`` |
  39. +-----------+------------------------+
  40. | *Setter* | set_remote_node(value) |
  41. +-----------+------------------------+
  42. | *Getter* | get_remote_node() |
  43. +-----------+------------------------+
  44. The :ref:`NodePath<class_NodePath>` to the remote node, relative to the RemoteTransform2D's position in the scene.
  45. ----
  46. .. _class_RemoteTransform2D_property_update_position:
  47. - :ref:`bool<class_bool>` **update_position**
  48. +-----------+----------------------------+
  49. | *Default* | ``true`` |
  50. +-----------+----------------------------+
  51. | *Setter* | set_update_position(value) |
  52. +-----------+----------------------------+
  53. | *Getter* | get_update_position() |
  54. +-----------+----------------------------+
  55. If ``true``, the remote node's position is updated.
  56. ----
  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. ----
  68. .. _class_RemoteTransform2D_property_update_scale:
  69. - :ref:`bool<class_bool>` **update_scale**
  70. +-----------+-------------------------+
  71. | *Default* | ``true`` |
  72. +-----------+-------------------------+
  73. | *Setter* | set_update_scale(value) |
  74. +-----------+-------------------------+
  75. | *Getter* | get_update_scale() |
  76. +-----------+-------------------------+
  77. If ``true``, the remote node's scale is updated.
  78. ----
  79. .. _class_RemoteTransform2D_property_use_global_coordinates:
  80. - :ref:`bool<class_bool>` **use_global_coordinates**
  81. +-----------+-----------------------------------+
  82. | *Default* | ``true`` |
  83. +-----------+-----------------------------------+
  84. | *Setter* | set_use_global_coordinates(value) |
  85. +-----------+-----------------------------------+
  86. | *Getter* | get_use_global_coordinates() |
  87. +-----------+-----------------------------------+
  88. If ``true``, global coordinates are used. If ``false``, local coordinates are used.
  89. Method Descriptions
  90. -------------------
  91. .. _class_RemoteTransform2D_method_force_update_cache:
  92. - void **force_update_cache** **(** **)**
  93. ``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.
  94. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  95. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  96. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  97. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  98. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  99. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`