2
0

class_visualscriptselect.rst 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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/VisualScriptSelect.xml.
  6. .. _class_VisualScriptSelect:
  7. VisualScriptSelect
  8. ==================
  9. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. Chooses between two input values.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Chooses between two input values based on a Boolean condition.
  15. \ **Input Ports:**\
  16. - Data (boolean): ``cond``\
  17. - Data (variant): ``a``\
  18. - Data (variant): ``b``\
  19. \ **Output Ports:**\
  20. - Data (variant): ``out``
  21. .. rst-class:: classref-reftable-group
  22. Properties
  23. ----------
  24. .. table::
  25. :widths: auto
  26. +-----------------------------------------------------+-----------------------------------------------------+-------+
  27. | :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` | :ref:`type<class_VisualScriptSelect_property_type>` | ``0`` |
  28. +-----------------------------------------------------+-----------------------------------------------------+-------+
  29. .. rst-class:: classref-section-separator
  30. ----
  31. .. rst-class:: classref-descriptions-group
  32. Property Descriptions
  33. ---------------------
  34. .. _class_VisualScriptSelect_property_type:
  35. .. rst-class:: classref-property
  36. :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **type** = ``0``
  37. .. rst-class:: classref-property-setget
  38. - void **set_typed** **(** :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` value **)**
  39. - :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **get_typed** **(** **)**
  40. The input variables' type.
  41. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  42. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  43. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  44. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`