2017-09-12 20:42:36 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2021-06-04 16:03:15 +00:00
|
|
|
<class name="VisualScriptFunctionState" inherits="RefCounted" version="4.0">
|
2017-09-12 20:42:36 +00:00
|
|
|
<brief_description>
|
2020-10-12 17:37:50 +00:00
|
|
|
A Visual Script node representing a function state.
|
2017-09-12 20:42:36 +00:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2020-10-12 17:37:50 +00:00
|
|
|
[VisualScriptFunctionState] is returned from [VisualScriptYield] and can be used to resume a paused function call.
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="connect_to_signal">
|
|
|
|
<return type="void">
|
|
|
|
</return>
|
|
|
|
<argument index="0" name="obj" type="Object">
|
|
|
|
</argument>
|
|
|
|
<argument index="1" name="signals" type="String">
|
|
|
|
</argument>
|
|
|
|
<argument index="2" name="args" type="Array">
|
|
|
|
</argument>
|
|
|
|
<description>
|
2020-10-12 17:37:50 +00:00
|
|
|
Connects this [VisualScriptFunctionState] to a signal in the given object to automatically resume when it's emitted.
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="is_valid" qualifiers="const">
|
|
|
|
<return type="bool">
|
|
|
|
</return>
|
|
|
|
<description>
|
2020-10-12 17:37:50 +00:00
|
|
|
Returns whether the function state is valid.
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="resume">
|
|
|
|
<return type="Variant">
|
|
|
|
</return>
|
2019-09-24 17:45:03 +00:00
|
|
|
<argument index="0" name="args" type="Array" default="[]">
|
2017-09-12 20:42:36 +00:00
|
|
|
</argument>
|
|
|
|
<description>
|
2020-10-12 17:37:50 +00:00
|
|
|
Resumes the function to run from the point it was yielded.
|
2017-09-12 20:42:36 +00:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|