class_visualscriptreturn.rst 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the VisualScriptReturn.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_VisualScriptReturn:
  5. VisualScriptReturn
  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. Exits a function and returns an optional value.
  12. Properties
  13. ----------
  14. +-----------------------------------------------------+-------------------------------------------------------------------------+
  15. | :ref:`bool<class_bool>` | :ref:`return_enabled<class_VisualScriptReturn_property_return_enabled>` |
  16. +-----------------------------------------------------+-------------------------------------------------------------------------+
  17. | :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` | :ref:`return_type<class_VisualScriptReturn_property_return_type>` |
  18. +-----------------------------------------------------+-------------------------------------------------------------------------+
  19. Description
  20. -----------
  21. Ends the execution of a function and returns control to the calling function. Optionally, it can return a :ref:`Variant<class_Variant>` value.
  22. **Input Ports:**
  23. - Sequence
  24. - Data (variant): ``result`` (optional)
  25. **Output Ports:**
  26. none
  27. Property Descriptions
  28. ---------------------
  29. .. _class_VisualScriptReturn_property_return_enabled:
  30. - :ref:`bool<class_bool>` **return_enabled**
  31. +----------+--------------------------------+
  32. | *Setter* | set_enable_return_value(value) |
  33. +----------+--------------------------------+
  34. | *Getter* | is_return_value_enabled() |
  35. +----------+--------------------------------+
  36. If ``true``, the ``return`` input port is available.
  37. .. _class_VisualScriptReturn_property_return_type:
  38. - :ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` **return_type**
  39. +----------+------------------------+
  40. | *Setter* | set_return_type(value) |
  41. +----------+------------------------+
  42. | *Getter* | get_return_type() |
  43. +----------+------------------------+
  44. The return value's data type.