RemoteTransform2D.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="RemoteTransform2D" inherits="Node2D" version="3.2">
  3. <brief_description>
  4. RemoteTransform2D pushes its own [Transform2D] to another [CanvasItem] derived Node in the scene.
  5. </brief_description>
  6. <description>
  7. RemoteTransform2D pushes its own [Transform2D] to another [CanvasItem] derived Node (called the remote node) in the scene.
  8. It can be set to update another Node's position, rotation and/or scale. It can use either global or local coordinates.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="force_update_cache">
  14. <return type="void">
  15. </return>
  16. <description>
  17. [RemoteTransform2D] caches the remote node. It may not notice if the remote node disappears; [method force_update_cache] forces it to update the cache again.
  18. </description>
  19. </method>
  20. </methods>
  21. <members>
  22. <member name="remote_path" type="NodePath" setter="set_remote_node" getter="get_remote_node" default="NodePath(&quot;&quot;)">
  23. The [NodePath] to the remote node, relative to the RemoteTransform2D's position in the scene.
  24. </member>
  25. <member name="update_position" type="bool" setter="set_update_position" getter="get_update_position" default="true">
  26. If [code]true[/code], the remote node's position is updated.
  27. </member>
  28. <member name="update_rotation" type="bool" setter="set_update_rotation" getter="get_update_rotation" default="true">
  29. If [code]true[/code], the remote node's rotation is updated.
  30. </member>
  31. <member name="update_scale" type="bool" setter="set_update_scale" getter="get_update_scale" default="true">
  32. If [code]true[/code], the remote node's scale is updated.
  33. </member>
  34. <member name="use_global_coordinates" type="bool" setter="set_use_global_coordinates" getter="get_use_global_coordinates" default="true">
  35. If [code]true[/code], global coordinates are used. If [code]false[/code], local coordinates are used.
  36. </member>
  37. </members>
  38. <constants>
  39. </constants>
  40. </class>