Returns whether the enabler identified by given enabler constant is active.
Sets active state of the enabler identified by given enabler constant.
If true, RigidBody nodes will be paused.
If true, AnimationPlayer nodes will be paused.
Construct a new instance of VisibilityEnabler. Note: use memnew!VisibilityEnabler instead.
Enables certain nodes only when approximately visible.
The VisibilityEnabler will disable RigidBody and AnimationPlayer nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself. If you just want to receive notifications, use VisibilityNotifier instead. Note: VisibilityEnabler uses an approximate heuristic for performance reasons. It doesn't take walls and other occlusion into account. The heuristic is an implementation detail and may change in future versions. If you need precise visibility checking, use another method such as adding an Area node as a child of a Camera node and/or Vector3.dot. Note: VisibilityEnabler will not affect nodes added after scene initialization.