class_visibilityenabler2d.rst 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisibilityEnabler2D.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisibilityEnabler2D:
  5. VisibilityEnabler2D
  6. ===================
  7. **Inherits:** :ref:`VisibilityNotifier2D<class_visibilitynotifier2d>` **<** :ref:`Node2D<class_node2d>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :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_VisibilityEnabler2D_freeze_bodies:
  15. - :ref:`bool<class_bool>` **freeze_bodies**
  16. .. _class_VisibilityEnabler2D_pause_animated_sprites:
  17. - :ref:`bool<class_bool>` **pause_animated_sprites**
  18. .. _class_VisibilityEnabler2D_pause_animations:
  19. - :ref:`bool<class_bool>` **pause_animations**
  20. .. _class_VisibilityEnabler2D_pause_particles:
  21. - :ref:`bool<class_bool>` **pause_particles**
  22. .. _class_VisibilityEnabler2D_physics_process_parent:
  23. - :ref:`bool<class_bool>` **physics_process_parent**
  24. .. _class_VisibilityEnabler2D_process_parent:
  25. - :ref:`bool<class_bool>` **process_parent**
  26. Enums
  27. -----
  28. .. _enum_VisibilityEnabler2D_Enabler:
  29. enum **Enabler**
  30. - **ENABLER_PAUSE_ANIMATIONS** = **0** --- This enabler will pause :ref:`AnimationPlayer<class_animationplayer>` nodes.
  31. - **ENABLER_FREEZE_BODIES** = **1** --- This enabler will freeze :ref:`RigidBody2D<class_rigidbody2d>` nodes.
  32. - **ENABLER_PAUSE_PARTICLES** = **2** --- This enabler will stop :ref:`Particles2D<class_particles2d>` nodes.
  33. - **ENABLER_PARENT_PROCESS** = **3** --- This enabler will stop the parent's _process function.
  34. - **ENABLER_PARENT_PHYSICS_PROCESS** = **4** --- This enabler will stop the parent's _physics_process function.
  35. - **ENABLER_PAUSE_ANIMATED_SPRITES** = **5**
  36. - **ENABLER_MAX** = **6**
  37. Description
  38. -----------
  39. The VisibilityEnabler2D will disable :ref:`RigidBody2D<class_rigidbody2d>`, :ref:`AnimationPlayer<class_animationplayer>`, and other nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler2D itself.