1 Star 1 Fork 0

天天编程/godot-docs

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
class_visualscriptreturn.rst 2.44 KB
一键复制 编辑 原始数据 按行查看 历史
github_url: hide

VisualScriptReturn

Inherits: :ref:`VisualScriptNode<class_VisualScriptNode>` < :ref:`Resource<class_Resource>` < :ref:`Reference<class_Reference>` < :ref:`Object<class_Object>`

Exits a function and returns an optional value.

Description

Ends the execution of a function and returns control to the calling function. Optionally, it can return a :ref:`Variant<class_Variant>` value.

Input Ports:

  • Sequence
  • Data (variant): result (optional)

Output Ports:

none

Properties

:ref:`bool<class_bool>` :ref:`return_enabled<class_VisualScriptReturn_property_return_enabled>` false
:ref:`Variant.Type<enum_@GlobalScope_Variant.Type>` :ref:`return_type<class_VisualScriptReturn_property_return_type>` 0

Property Descriptions

Default false
Setter set_enable_return_value(value)
Getter is_return_value_enabled()

If true, the return input port is available.


Default 0
Setter set_return_type(value)
Getter get_return_type()

The return value's data type.

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ttcode-net/godot-docs.git
git@gitee.com:ttcode-net/godot-docs.git
ttcode-net
godot-docs
godot-docs
master

搜索帮助