VisualScriptYield.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="VisualScriptYield" inherits="VisualScriptNode" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd">
  3. <brief_description>
  4. A Visual Script node used to pause a function execution.
  5. </brief_description>
  6. <description>
  7. [VisualScriptYield] will pause the function call and return [VisualScriptFunctionState], which can be used to resume the function.
  8. </description>
  9. <tutorials>
  10. </tutorials>
  11. <methods>
  12. </methods>
  13. <members>
  14. <member name="mode" type="int" setter="set_yield_mode" getter="get_yield_mode" enum="VisualScriptYield.YieldMode" default="1">
  15. The mode to use for yielding. See [enum YieldMode] for available options.
  16. </member>
  17. <member name="wait_time" type="float" setter="set_wait_time" getter="get_wait_time">
  18. The time to wait when [member mode] is set to [constant YIELD_WAIT].
  19. </member>
  20. </members>
  21. <constants>
  22. <constant name="YIELD_FRAME" value="1" enum="YieldMode">
  23. Yields during an idle frame.
  24. </constant>
  25. <constant name="YIELD_PHYSICS_FRAME" value="2" enum="YieldMode">
  26. Yields during a physics frame.
  27. </constant>
  28. <constant name="YIELD_WAIT" value="3" enum="YieldMode">
  29. Yields a function and waits the given time.
  30. </constant>
  31. </constants>
  32. </class>