29 #ifndef VISIBILITY_NOTIFIER_H 30 #define VISIBILITY_NOTIFIER_H 32 #include "scene/3d/spatial.h" 45 virtual void _screen_enter() {}
46 virtual void _screen_exit() {}
48 void _notification(
int p_what);
49 static void _bind_methods();
52 void _enter_camera(
Camera* p_camera);
53 void _exit_camera(
Camera* p_camera);
57 void set_aabb(
const AABB& p_aabb);
58 AABB get_aabb()
const;
59 bool is_on_screen()
const;
71 ENABLER_PAUSE_ANIMATIONS,
72 ENABLER_FREEZE_BODIES,
78 virtual void _screen_enter();
79 virtual void _screen_exit();
83 void _find_nodes(
Node* p_node);
86 void _node_removed(
Node* p_node);
87 bool enabler[ENABLER_MAX];
89 void _change_node_state(
Node* p_node,
bool p_enabled);
91 void _notification(
int p_what);
92 static void _bind_methods();
96 void set_enabler(Enabler p_enabler,
bool p_enable);
97 bool is_enabler_enabled(Enabler p_enabler)
const;
103 VARIANT_ENUM_CAST(VisibilityEnabler::Enabler);
106 #endif // VISIBILITY_NOTIFIER_H
Definition: visibility_notifier.h:65
Definition: visibility_notifier.h:35