2
0

VisibilityEnabler.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisibilityEnabler" inherits="VisibilityNotifier" category="Core" version="3.1">
  3. <brief_description>
  4. Enable certain nodes only when visible.
  5. </brief_description>
  6. <description>
  7. The VisibilityEnabler will disable [RigidBody] and [AnimationPlayer] nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <demos>
  12. </demos>
  13. <methods>
  14. </methods>
  15. <members>
  16. <member name="freeze_bodies" type="bool" setter="set_enabler" getter="is_enabler_enabled">
  17. If [code]true[/code], [RigidBody] nodes will be paused.
  18. </member>
  19. <member name="pause_animations" type="bool" setter="set_enabler" getter="is_enabler_enabled">
  20. If [code]true[/code], [AnimationPlayer] nodes will be paused.
  21. </member>
  22. </members>
  23. <constants>
  24. <constant name="ENABLER_PAUSE_ANIMATIONS" value="0" enum="Enabler">
  25. This enabler will pause [AnimationPlayer] nodes.
  26. </constant>
  27. <constant name="ENABLER_FREEZE_BODIES" value="1" enum="Enabler">
  28. This enabler will freeze [RigidBody] nodes.
  29. </constant>
  30. <constant name="ENABLER_MAX" value="2" enum="Enabler">
  31. </constant>
  32. </constants>
  33. </class>