class_visibilitynotifier.rst 2.8 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:`Rect3<class_rect3>` | :ref:`get_aabb<class_VisibilityNotifier_get_aabb>` **(** **)** const |
  17. +----------------------------+-------------------------------------------------------------------------------------------------+
  18. | :ref:`bool<class_bool>` | :ref:`is_on_screen<class_VisibilityNotifier_is_on_screen>` **(** **)** const |
  19. +----------------------------+-------------------------------------------------------------------------------------------------+
  20. | void | :ref:`set_aabb<class_VisibilityNotifier_set_aabb>` **(** :ref:`Rect3<class_rect3>` rect **)** |
  21. +----------------------------+-------------------------------------------------------------------------------------------------+
  22. Signals
  23. -------
  24. - **camera_entered** **(** :ref:`Object<class_object>` camera **)**
  25. Emitted when the VisibilityNotifier enters a :ref:`Camera<class_camera>`'s view.
  26. - **camera_exited** **(** :ref:`Object<class_object>` camera **)**
  27. Emitted when the VisibilityNotifier exits a :ref:`Camera<class_camera>`'s view.
  28. - **screen_entered** **(** **)**
  29. Emitted when the VisibilityNotifier enters the screen.
  30. - **screen_exited** **(** **)**
  31. Emitted when the VisibilityNotifier exits the screen.
  32. Member Variables
  33. ----------------
  34. - :ref:`Rect3<class_rect3>` **aabb** - The VisibilityNotifier's bounding box.
  35. Description
  36. -----------
  37. 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.
  38. Member Function Description
  39. ---------------------------
  40. .. _class_VisibilityNotifier_get_aabb:
  41. - :ref:`Rect3<class_rect3>` **get_aabb** **(** **)** const
  42. Returns the bounding box of the VisibilityNotifier.
  43. .. _class_VisibilityNotifier_is_on_screen:
  44. - :ref:`bool<class_bool>` **is_on_screen** **(** **)** const
  45. If ``true`` the bounding box is on the screen.
  46. .. _class_VisibilityNotifier_set_aabb:
  47. - void **set_aabb** **(** :ref:`Rect3<class_rect3>` rect **)**
  48. Set the visibility bounding box of the VisibilityNotifier.