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