Struct VisibilityEnabler

Enables certain nodes only when visible.

struct VisibilityEnabler ;

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.

Properties

NameTypeDescription
freezeBodies[get, set] boolIf true, RigidBody nodes will be paused.
pauseAnimations[get, set] boolIf true, AnimationPlayer nodes will be paused.

Methods

NameDescription
_nodeRemoved
isEnablerEnabled Returns whether the enabler identified by given enabler constant is active.
setEnabler Sets active state of the enabler identified by given enabler constant.

Enums

NameDescription
Constants
Enabler