2017-09-12 22:42:36 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2022-08-05 18:51:38 +02:00
|
|
|
<class name="VisualScriptFunctionState" inherits="Reference" version="3.6" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
|
2017-09-12 22:42:36 +02:00
|
|
|
<brief_description>
|
2020-10-12 19:37:50 +02:00
|
|
|
A Visual Script node representing a function state.
|
2017-09-12 22:42:36 +02:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2020-10-12 19:37:50 +02:00
|
|
|
[VisualScriptFunctionState] is returned from [VisualScriptYield] and can be used to resume a paused function call.
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
<method name="connect_to_signal">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="obj" type="Object" />
|
|
|
|
<argument index="1" name="signals" type="String" />
|
|
|
|
<argument index="2" name="args" type="Array" />
|
2017-09-12 22:42:36 +02:00
|
|
|
<description>
|
2020-10-12 19:37:50 +02:00
|
|
|
Connects this [VisualScriptFunctionState] to a signal in the given object to automatically resume when it's emitted.
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="is_valid" qualifiers="const">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="bool" />
|
2017-09-12 22:42:36 +02:00
|
|
|
<description>
|
2020-10-12 19:37:50 +02:00
|
|
|
Returns whether the function state is valid.
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
<method name="resume">
|
2021-07-30 15:28:05 +02:00
|
|
|
<return type="Variant" />
|
|
|
|
<argument index="0" name="args" type="Array" default="null" />
|
2017-09-12 22:42:36 +02:00
|
|
|
<description>
|
2020-10-12 19:37:50 +02:00
|
|
|
Resumes the function to run from the point it was yielded.
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
</method>
|
|
|
|
</methods>
|
|
|
|
<constants>
|
|
|
|
</constants>
|
|
|
|
</class>
|