Struct VisibilityEnabler2D
Enables certain nodes only when visible.
struct VisibilityEnabler2D
;
The VisibilityEnabler2D will disable RigidBody2D
, AnimationPlayer
, and other nodes when they are not visible. It will only affect nodes with the same root node as the VisibilityEnabler2D, and the root node itself.
Properties
Name | Type | Description |
freezeBodies [get, set]
|
bool | If true , RigidBody2D nodes will be paused.
|
pauseAnimatedSprites [get, set]
|
bool | If true , AnimatedSprite nodes will be paused.
|
pauseAnimations [get, set]
|
bool | If true , AnimationPlayer nodes will be paused.
|
pauseParticles [get, set]
|
bool | If true , Particles2D nodes will be paused.
|
physicsProcessParent [get, set]
|
bool | If true , the parent's Node.physicsProcess will be stopped.
|
processParent [get, set]
|
bool | If true , the parent's Node.process will be stopped.
|