class_visibilitynotifier.rst 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisibilityNotifier.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisibilityNotifier:
  5. VisibilityNotifier
  6. ==================
  7. **Inherits:** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Inherited By:** :ref:`VisibilityEnabler<class_visibilityenabler>`
  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_VisibilityNotifier_is_on_screen>` **(** **)** const |
  17. +--------------------------+------------------------------------------------------------------------------+
  18. Signals
  19. -------
  20. .. _class_VisibilityNotifier_camera_entered:
  21. - **camera_entered** **(** :ref:`Object<class_object>` camera **)**
  22. Emitted when the VisibilityNotifier enters a :ref:`Camera<class_camera>`'s view.
  23. .. _class_VisibilityNotifier_camera_exited:
  24. - **camera_exited** **(** :ref:`Object<class_object>` camera **)**
  25. Emitted when the VisibilityNotifier exits a :ref:`Camera<class_camera>`'s view.
  26. .. _class_VisibilityNotifier_screen_entered:
  27. - **screen_entered** **(** **)**
  28. Emitted when the VisibilityNotifier enters the screen.
  29. .. _class_VisibilityNotifier_screen_exited:
  30. - **screen_exited** **(** **)**
  31. Emitted when the VisibilityNotifier exits the screen.
  32. Member Variables
  33. ----------------
  34. .. _class_VisibilityNotifier_aabb:
  35. - :ref:`AABB<class_aabb>` **aabb** - The VisibilityNotifier's bounding box.
  36. Description
  37. -----------
  38. The VisibilityNotifier detects when it is visible on the screen. It also notifies when its bounding rectangle enters or exits the screen or a :ref:`Camera<class_camera>`'s view.
  39. Member Function Description
  40. ---------------------------
  41. .. _class_VisibilityNotifier_is_on_screen:
  42. - :ref:`bool<class_bool>` **is_on_screen** **(** **)** const
  43. If ``true`` the bounding box is on the screen.