class_visualscriptfunctionstate.rst 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/modules/visual_script/doc_classes/VisualScriptFunctionState.xml.
  6. .. _class_VisualScriptFunctionState:
  7. VisualScriptFunctionState
  8. =========================
  9. **Inherits:** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A Visual Script node representing a function state.
  11. Description
  12. -----------
  13. ``VisualScriptFunctionState`` is returned from :ref:`VisualScriptYield<class_VisualScriptYield>` and can be used to resume a paused function call.
  14. Methods
  15. -------
  16. +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`connect_to_signal<class_VisualScriptFunctionState_method_connect_to_signal>` **(** :ref:`Object<class_Object>` obj, :ref:`String<class_String>` signals, :ref:`Array<class_Array>` args **)** |
  18. +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`bool<class_bool>` | :ref:`is_valid<class_VisualScriptFunctionState_method_is_valid>` **(** **)** |const| |
  20. +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | :ref:`Variant<class_Variant>` | :ref:`resume<class_VisualScriptFunctionState_method_resume>` **(** :ref:`Array<class_Array>` args=[] **)** |
  22. +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. Method Descriptions
  24. -------------------
  25. .. _class_VisualScriptFunctionState_method_connect_to_signal:
  26. - void **connect_to_signal** **(** :ref:`Object<class_Object>` obj, :ref:`String<class_String>` signals, :ref:`Array<class_Array>` args **)**
  27. Connects this ``VisualScriptFunctionState`` to a signal in the given object to automatically resume when it's emitted.
  28. ----
  29. .. _class_VisualScriptFunctionState_method_is_valid:
  30. - :ref:`bool<class_bool>` **is_valid** **(** **)** |const|
  31. Returns whether the function state is valid.
  32. ----
  33. .. _class_VisualScriptFunctionState_method_resume:
  34. - :ref:`Variant<class_Variant>` **resume** **(** :ref:`Array<class_Array>` args=[] **)**
  35. Resumes the function to run from the point it was yielded.
  36. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  37. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  38. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  39. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  40. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  41. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`