class_visualscriptswitch.rst 959 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisualScriptSwitch.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisualScriptSwitch:
  5. VisualScriptSwitch
  6. ==================
  7. **Inherits:** :ref:`VisualScriptNode<class_visualscriptnode>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Branches program flow based on a given input's value.
  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``