class_visualscriptfunctionstate.rst 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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/3.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/modules/visual_script/doc_classes/VisualScriptFunctionState.xml.
  6. .. _class_VisualScriptFunctionState:
  7. VisualScriptFunctionState
  8. =========================
  9. **Inherits:** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. A Visual Script node representing a function state.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **VisualScriptFunctionState** is returned from :ref:`VisualScriptYield<class_VisualScriptYield>` and can be used to resume a paused function call.
  15. .. rst-class:: classref-reftable-group
  16. Methods
  17. -------
  18. .. table::
  19. :widths: auto
  20. +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | 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 **)** |
  22. +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | :ref:`bool<class_bool>` | :ref:`is_valid<class_VisualScriptFunctionState_method_is_valid>` **(** **)** |const| |
  24. +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | :ref:`Variant<class_Variant>` | :ref:`resume<class_VisualScriptFunctionState_method_resume>` **(** :ref:`Array<class_Array>` args=null **)** |
  26. +-------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Method Descriptions
  31. -------------------
  32. .. _class_VisualScriptFunctionState_method_connect_to_signal:
  33. .. rst-class:: classref-method
  34. void **connect_to_signal** **(** :ref:`Object<class_Object>` obj, :ref:`String<class_String>` signals, :ref:`Array<class_Array>` args **)**
  35. Connects this **VisualScriptFunctionState** to a signal in the given object to automatically resume when it's emitted.
  36. .. rst-class:: classref-item-separator
  37. ----
  38. .. _class_VisualScriptFunctionState_method_is_valid:
  39. .. rst-class:: classref-method
  40. :ref:`bool<class_bool>` **is_valid** **(** **)** |const|
  41. Returns whether the function state is valid.
  42. .. rst-class:: classref-item-separator
  43. ----
  44. .. _class_VisualScriptFunctionState_method_resume:
  45. .. rst-class:: classref-method
  46. :ref:`Variant<class_Variant>` **resume** **(** :ref:`Array<class_Array>` args=null **)**
  47. Resumes the function to run from the point it was yielded.
  48. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  49. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  50. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  51. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`