:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/3.5/modules/visual_script/doc_classes/VisualScriptYieldSignal.xml. .. _class_VisualScriptYieldSignal: VisualScriptYieldSignal ======================= **Inherits:** :ref:`VisualScriptNode` **<** :ref:`Resource` **<** :ref:`Reference` **<** :ref:`Object` A Visual Script node yielding for a signal. Description ----------- ``VisualScriptYieldSignal`` will pause the function execution until the provided signal is emitted. Properties ---------- +--------------------------------------------------------+--------------------------------------------------------------------+--------------+ | :ref:`String` | :ref:`base_type` | ``"Object"`` | +--------------------------------------------------------+--------------------------------------------------------------------+--------------+ | :ref:`CallMode` | :ref:`call_mode` | ``0`` | +--------------------------------------------------------+--------------------------------------------------------------------+--------------+ | :ref:`NodePath` | :ref:`node_path` | | +--------------------------------------------------------+--------------------------------------------------------------------+--------------+ | :ref:`String` | :ref:`signal` | ``""`` | +--------------------------------------------------------+--------------------------------------------------------------------+--------------+ Enumerations ------------ .. _enum_VisualScriptYieldSignal_CallMode: .. _class_VisualScriptYieldSignal_constant_CALL_MODE_SELF: .. _class_VisualScriptYieldSignal_constant_CALL_MODE_NODE_PATH: .. _class_VisualScriptYieldSignal_constant_CALL_MODE_INSTANCE: enum **CallMode**: - **CALL_MODE_SELF** = **0** --- A signal from this :ref:`Object` will be used. - **CALL_MODE_NODE_PATH** = **1** --- A signal from the given :ref:`Node` in the scene tree will be used. - **CALL_MODE_INSTANCE** = **2** --- A signal from an instanced node with the given type will be used. Property Descriptions --------------------- .. _class_VisualScriptYieldSignal_property_base_type: - :ref:`String` **base_type** +-----------+----------------------+ | *Default* | ``"Object"`` | +-----------+----------------------+ | *Setter* | set_base_type(value) | +-----------+----------------------+ | *Getter* | get_base_type() | +-----------+----------------------+ The base type to be used when :ref:`call_mode` is set to :ref:`CALL_MODE_INSTANCE`. ---- .. _class_VisualScriptYieldSignal_property_call_mode: - :ref:`CallMode` **call_mode** +-----------+----------------------+ | *Default* | ``0`` | +-----------+----------------------+ | *Setter* | set_call_mode(value) | +-----------+----------------------+ | *Getter* | get_call_mode() | +-----------+----------------------+ ``call_mode`` determines the target object to wait for the signal emission. See :ref:`CallMode` for options. ---- .. _class_VisualScriptYieldSignal_property_node_path: - :ref:`NodePath` **node_path** +----------+----------------------+ | *Setter* | set_base_path(value) | +----------+----------------------+ | *Getter* | get_base_path() | +----------+----------------------+ The node path to use when :ref:`call_mode` is set to :ref:`CALL_MODE_NODE_PATH`. ---- .. _class_VisualScriptYieldSignal_property_signal: - :ref:`String` **signal** +-----------+-------------------+ | *Default* | ``""`` | +-----------+-------------------+ | *Setter* | set_signal(value) | +-----------+-------------------+ | *Getter* | get_signal() | +-----------+-------------------+ The signal name to be waited for. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`