class_visibilityenabler.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisibilityEnabler.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisibilityEnabler:
  5. VisibilityEnabler
  6. =================
  7. **Inherits:** :ref:`VisibilityNotifier<class_visibilitynotifier>` **<** :ref:`Spatial<class_spatial>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Enable certain nodes only when visible.
  12. Member Variables
  13. ----------------
  14. .. _class_VisibilityEnabler_freeze_bodies:
  15. - :ref:`bool<class_bool>` **freeze_bodies**
  16. .. _class_VisibilityEnabler_pause_animations:
  17. - :ref:`bool<class_bool>` **pause_animations**
  18. Enums
  19. -----
  20. .. _enum_VisibilityEnabler_Enabler:
  21. enum **Enabler**
  22. - **ENABLER_PAUSE_ANIMATIONS** = **0** --- This enabler will pause :ref:`AnimationPlayer<class_animationplayer>` nodes.
  23. - **ENABLER_FREEZE_BODIES** = **1** --- This enabler will freeze :ref:`RigidBody<class_rigidbody>` nodes.
  24. - **ENABLER_MAX** = **2**
  25. Description
  26. -----------
  27. The VisibilityEnabler will disable :ref:`RigidBody<class_rigidbody>` and :ref:`AnimationPlayer<class_animationplayer>` nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself.