class_visibilitynotifier2d.rst 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisibilityNotifier2D.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisibilityNotifier2D:
  5. VisibilityNotifier2D
  6. ====================
  7. **Inherits:** :ref:`Node2D<class_node2d>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Inherited By:** :ref:`VisibilityEnabler2D<class_visibilityenabler2d>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Detects when the node is visible on screen.
  13. Member Functions
  14. ----------------
  15. +--------------------------+--------------------------------------------------------------------------------+
  16. | :ref:`bool<class_bool>` | :ref:`is_on_screen<class_VisibilityNotifier2D_is_on_screen>` **(** **)** const |
  17. +--------------------------+--------------------------------------------------------------------------------+
  18. Signals
  19. -------
  20. .. _class_VisibilityNotifier2D_screen_entered:
  21. - **screen_entered** **(** **)**
  22. Emitted when the VisibilityNotifier2D enters the screen.
  23. .. _class_VisibilityNotifier2D_screen_exited:
  24. - **screen_exited** **(** **)**
  25. Emitted when the VisibilityNotifier2D exits the screen.
  26. .. _class_VisibilityNotifier2D_viewport_entered:
  27. - **viewport_entered** **(** :ref:`Object<class_object>` viewport **)**
  28. Emitted when the VisibilityNotifier2D enters a :ref:`Viewport<class_viewport>`'s view.
  29. .. _class_VisibilityNotifier2D_viewport_exited:
  30. - **viewport_exited** **(** :ref:`Object<class_object>` viewport **)**
  31. Emitted when the VisibilityNotifier2D exits a :ref:`Viewport<class_viewport>`'s view.
  32. Member Variables
  33. ----------------
  34. .. _class_VisibilityNotifier2D_rect:
  35. - :ref:`Rect2<class_rect2>` **rect** - The VisibilityNotifier2D's bounding rectangle.
  36. Description
  37. -----------
  38. 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.
  39. Member Function Description
  40. ---------------------------
  41. .. _class_VisibilityNotifier2D_is_on_screen:
  42. - :ref:`bool<class_bool>` **is_on_screen** **(** **)** const
  43. If ``true`` the bounding rectangle is on the screen.