VisibilityNotifier
Inherits: Spatial < Node < Object
Inherited By: VisibilityEnabler
Category: Core
Brief Description
Detect when the node is visible on screen.
Signals
- enter_camera ( Object camera )
- enter_screen ( )
- exit_camera ( Object camera )
- exit_screen ( )
Description
The VisibilityNotifier is used to notify when its bounding box enters the screen, is visible on the screen, or when it exits the screen.
Member Function Description
Return the visibility bounding box of the VisibilityNotifier.
- bool is_on_screen ( ) const
Return true if any part of the bounding box is on the screen.
- void set_aabb ( AABB rect )
Set the visibility bounding box of the VisibilityNotifier.