class_visibilitynotifier.rst 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_VisibilityNotifier:
  4. VisibilityNotifier
  5. ==================
  6. **Inherits:** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Inherited By:** :ref:`VisibilityEnabler<class_visibilityenabler>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Detect when the node is visible on screen.
  12. Member Functions
  13. ----------------
  14. +--------------------------+-----------------------------------------------------------------------------------------------+
  15. | :ref:`AABB<class_aabb>` | :ref:`get_aabb<class_VisibilityNotifier_get_aabb>` **(** **)** const |
  16. +--------------------------+-----------------------------------------------------------------------------------------------+
  17. | :ref:`bool<class_bool>` | :ref:`is_on_screen<class_VisibilityNotifier_is_on_screen>` **(** **)** const |
  18. +--------------------------+-----------------------------------------------------------------------------------------------+
  19. | void | :ref:`set_aabb<class_VisibilityNotifier_set_aabb>` **(** :ref:`AABB<class_aabb>` rect **)** |
  20. +--------------------------+-----------------------------------------------------------------------------------------------+
  21. Signals
  22. -------
  23. - **enter_camera** **(** :ref:`Object<class_object>` camera **)**
  24. Emitted when the VisibilityNotifier enters a :ref:`Camera<class_camera>`'s view.
  25. - **enter_screen** **(** **)**
  26. Emitted when the VisibilityNotifier enters the screen.
  27. - **exit_camera** **(** :ref:`Object<class_object>` camera **)**
  28. Emitted when the VisibilityNotifier exits a :ref:`Camera<class_camera>`'s view.
  29. - **exit_screen** **(** **)**
  30. Emitted when the VisibilityNotifier exits the screen.
  31. Description
  32. -----------
  33. The VisibilityNotifier is used to notify when its bounding box enters the screen, is visible on the screen, or when it exits the screen.
  34. Member Function Description
  35. ---------------------------
  36. .. _class_VisibilityNotifier_get_aabb:
  37. - :ref:`AABB<class_aabb>` **get_aabb** **(** **)** const
  38. Return the visibility bounding box of the VisibilityNotifier.
  39. .. _class_VisibilityNotifier_is_on_screen:
  40. - :ref:`bool<class_bool>` **is_on_screen** **(** **)** const
  41. Return true if any part of the bounding box is on the screen.
  42. .. _class_VisibilityNotifier_set_aabb:
  43. - void **set_aabb** **(** :ref:`AABB<class_aabb>` rect **)**
  44. Set the visibility bounding box of the VisibilityNotifier.