class_visualscriptswitch.rst 1.7 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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/visual_script/doc_classes/VisualScriptSwitch.xml.
  6. .. _class_VisualScriptSwitch:
  7. VisualScriptSwitch
  8. ==================
  9. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Branches program flow based on a given input's value.
  11. Description
  12. -----------
  13. 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.
  14. \ **Input Ports:**\
  15. - Sequence: ``'input' is``\
  16. - Data (variant): ``=``\
  17. - Data (variant): ``=`` (optional)
  18. - Data (variant): ``input``\
  19. \ **Output Ports:**\
  20. - Sequence
  21. - Sequence (optional)
  22. - Sequence: ``done``
  23. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  24. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  25. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  26. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  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.)`
  28. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`