.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the VisibilityEnabler.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_VisibilityEnabler: VisibilityEnabler ================= **Inherits:** :ref:`VisibilityNotifier` **<** :ref:`Spatial` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Enable certain nodes only when visible. Properties ---------- +-------------------------+----------------------------------------------------------------------------+ | :ref:`bool` | :ref:`freeze_bodies` | +-------------------------+----------------------------------------------------------------------------+ | :ref:`bool` | :ref:`pause_animations` | +-------------------------+----------------------------------------------------------------------------+ Enumerations ------------ .. _enum_VisibilityEnabler_Enabler: .. _class_VisibilityEnabler_constant_ENABLER_PAUSE_ANIMATIONS: .. _class_VisibilityEnabler_constant_ENABLER_FREEZE_BODIES: .. _class_VisibilityEnabler_constant_ENABLER_MAX: enum **Enabler**: - **ENABLER_PAUSE_ANIMATIONS** = **0** --- This enabler will pause :ref:`AnimationPlayer` nodes. - **ENABLER_FREEZE_BODIES** = **1** --- This enabler will freeze :ref:`RigidBody` nodes. - **ENABLER_MAX** = **2** Description ----------- The VisibilityEnabler will disable :ref:`RigidBody` and :ref:`AnimationPlayer` nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself. Property Descriptions --------------------- .. _class_VisibilityEnabler_property_freeze_bodies: - :ref:`bool` **freeze_bodies** +----------+----------------------+ | *Setter* | set_enabler(value) | +----------+----------------------+ | *Getter* | is_enabler_enabled() | +----------+----------------------+ If ``true``, :ref:`RigidBody` nodes will be paused. .. _class_VisibilityEnabler_property_pause_animations: - :ref:`bool` **pause_animations** +----------+----------------------+ | *Setter* | set_enabler(value) | +----------+----------------------+ | *Getter* | is_enabler_enabled() | +----------+----------------------+ If ``true``, :ref:`AnimationPlayer` nodes will be paused.