class_visualscriptswitch.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.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:`Reference<class_Reference>` **<** :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.)`