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="VisualScriptYield" inherits="VisualScriptNode" 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 used to pause a function execution.
|
2017-09-12 22:42:36 +02:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2020-10-12 19:37:50 +02:00
|
|
|
[VisualScriptYield] will pause the function call and return [VisualScriptFunctionState], which can be used to resume the function.
|
2017-09-12 22:42:36 +02:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
|
|
|
</methods>
|
|
|
|
<members>
|
2019-06-29 12:38:01 +02:00
|
|
|
<member name="mode" type="int" setter="set_yield_mode" getter="get_yield_mode" enum="VisualScriptYield.YieldMode" default="1">
|
2020-10-12 19:37:50 +02:00
|
|
|
The mode to use for yielding. See [enum YieldMode] for available options.
|
2018-01-11 23:38:35 +01:00
|
|
|
</member>
|
2019-06-29 21:22:15 +02:00
|
|
|
<member name="wait_time" type="float" setter="set_wait_time" getter="get_wait_time">
|
2020-10-12 19:37:50 +02:00
|
|
|
The time to wait when [member mode] is set to [constant YIELD_WAIT].
|
2017-09-12 22:42:36 +02:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<constants>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="YIELD_FRAME" value="1" enum="YieldMode">
|
2020-10-12 19:37:50 +02:00
|
|
|
Yields during an idle frame.
|
2017-09-12 22:42:36 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="YIELD_PHYSICS_FRAME" value="2" enum="YieldMode">
|
2020-10-12 19:37:50 +02:00
|
|
|
Yields during a physics frame.
|
2017-09-12 22:42:36 +02:00
|
|
|
</constant>
|
2017-11-24 23:16:30 +01:00
|
|
|
<constant name="YIELD_WAIT" value="3" enum="YieldMode">
|
2020-10-12 19:37:50 +02:00
|
|
|
Yields a function and waits the given time.
|
2017-09-12 22:42:36 +02:00
|
|
|
</constant>
|
|
|
|
</constants>
|
|
|
|
</class>
|