|
@@ -1,11 +1,12 @@
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|
|
<class name="VisibilityEnabler2D" inherits="VisibilityNotifier2D" version="4.0">
|
|
|
<brief_description>
|
|
|
- Enables certain nodes only when visible.
|
|
|
+ Enables certain nodes only when approximately visible.
|
|
|
</brief_description>
|
|
|
<description>
|
|
|
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.
|
|
|
- Note that VisibilityEnabler2D will not affect nodes added after scene initialization.
|
|
|
+ [b]Note:[/b] VisibilityEnabler2D uses an approximate heuristic for performance reasons. If you need exact visibility checking, use another method such as adding an [Area2D] node as a child of a [Camera2D] node.
|
|
|
+ [b]Note:[/b] VisibilityEnabler2D will not affect nodes added after scene initialization.
|
|
|
</description>
|
|
|
<tutorials>
|
|
|
</tutorials>
|