class_visualscriptswitch.rst 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/modules/visual_script/doc_classes/VisualScriptSwitch.xml.
  6. .. _class_VisualScriptSwitch:
  7. VisualScriptSwitch
  8. ==================
  9. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Branches program flow based on a given input's value.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Branches the flow based on an input's value. Use **Case Count** in the Inspector to set the number of branches and each comparison's optional type.
  15. \ **Input Ports:**\
  16. - Sequence: ``'input' is``\
  17. - Data (variant): ``=``\
  18. - Data (variant): ``=`` (optional)
  19. - Data (variant): ``input``\
  20. \ **Output Ports:**\
  21. - Sequence
  22. - Sequence (optional)
  23. - Sequence: ``done``
  24. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  25. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  26. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  27. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`