Enable certain nodes only when visible.
The VisibilityEnabler2D will disable [RigidBody2D], [AnimationPlayer], and other nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler2D itself.
- If [code]true[/code], [RigidBody2D] nodes will be paused.
- If [code]true[/code], [AnimatedSprite] nodes will be paused.
- If [code]true[/code], [AnimationPlayer] nodes will be paused.
- If [code]true[/code], [Particles2D] nodes will be paused.
- If [code]true[/code], the parent's [method Node._physics_process] will be stopped.
- If [code]true[/code], the parent's [method Node._process] will be stopped.
This enabler will pause [AnimationPlayer] nodes.
This enabler will freeze [RigidBody2D] nodes.
This enabler will stop [Particles2D] nodes.
This enabler will stop the parent's _process function.
This enabler will stop the parent's _physics_process function.