VisibilityNotifier2D.xml 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisibilityNotifier2D" inherits="Node2D" category="Core" version="3.1">
  3. <brief_description>
  4. Detects when the node is visible on screen.
  5. </brief_description>
  6. <description>
  7. The VisibilityNotifier2D detects when it is visible on the screen. It also notifies when its bounding rectangle enters or exits the screen or a viewport.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. <method name="is_on_screen" qualifiers="const">
  15. <return type="bool">
  16. </return>
  17. <description>
  18. If [code]true[/code], the bounding rectangle is on the screen.
  19. </description>
  20. </method>
  21. </methods>
  22. <members>
  23. <member name="rect" type="Rect2" setter="set_rect" getter="get_rect">
  24. The VisibilityNotifier2D's bounding rectangle.
  25. </member>
  26. </members>
  27. <signals>
  28. <signal name="screen_entered">
  29. <description>
  30. Emitted when the VisibilityNotifier2D enters the screen.
  31. </description>
  32. </signal>
  33. <signal name="screen_exited">
  34. <description>
  35. Emitted when the VisibilityNotifier2D exits the screen.
  36. </description>
  37. </signal>
  38. <signal name="viewport_entered">
  39. <argument index="0" name="viewport" type="Viewport">
  40. </argument>
  41. <description>
  42. Emitted when the VisibilityNotifier2D enters a [Viewport]'s view.
  43. </description>
  44. </signal>
  45. <signal name="viewport_exited">
  46. <argument index="0" name="viewport" type="Viewport">
  47. </argument>
  48. <description>
  49. Emitted when the VisibilityNotifier2D exits a [Viewport]'s view.
  50. </description>
  51. </signal>
  52. </signals>
  53. <constants>
  54. </constants>
  55. </class>