class_visualscriptswitch.rst 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the VisualScriptSwitch.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualScriptSwitch:
  6. VisualScriptSwitch
  7. ==================
  8. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Branches program flow based on a given input's value.
  10. Description
  11. -----------
  12. 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.
  13. \ **Input Ports:**\
  14. - Sequence: ``'input' is``\
  15. - Data (variant): ``=``\
  16. - Data (variant): ``=`` (optional)
  17. - Data (variant): ``input``\
  18. \ **Output Ports:**\
  19. - Sequence
  20. - Sequence (optional)
  21. - Sequence: ``done``
  22. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  23. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  24. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  25. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  26. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  27. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`