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
| Name | Type | Description |
|---|---|---|
freezeBodies[get, set]
|
bool | If true, RigidBody nodes will be paused.
|
pauseAnimations[get, set]
|
bool | If true, AnimationPlayer nodes will be paused.
|
Methods
| Name | Description |
|---|---|
_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
| Name | Description |
|---|---|
Constants
|
|
Enabler
|