class_visualscriptyieldsignal.rst 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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/VisualScriptYieldSignal.xml.
  6. .. _class_VisualScriptYieldSignal:
  7. VisualScriptYieldSignal
  8. =======================
  9. **Inherits:** :ref:`VisualScriptNode<class_VisualScriptNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. A Visual Script node yielding for a signal.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. **VisualScriptYieldSignal** will pause the function execution until the provided signal is emitted.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +--------------------------------------------------------+--------------------------------------------------------------------+--------------+
  21. | :ref:`String<class_String>` | :ref:`base_type<class_VisualScriptYieldSignal_property_base_type>` | ``"Object"`` |
  22. +--------------------------------------------------------+--------------------------------------------------------------------+--------------+
  23. | :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` | :ref:`call_mode<class_VisualScriptYieldSignal_property_call_mode>` | ``0`` |
  24. +--------------------------------------------------------+--------------------------------------------------------------------+--------------+
  25. | :ref:`NodePath<class_NodePath>` | :ref:`node_path<class_VisualScriptYieldSignal_property_node_path>` | |
  26. +--------------------------------------------------------+--------------------------------------------------------------------+--------------+
  27. | :ref:`String<class_String>` | :ref:`signal<class_VisualScriptYieldSignal_property_signal>` | ``""`` |
  28. +--------------------------------------------------------+--------------------------------------------------------------------+--------------+
  29. .. rst-class:: classref-section-separator
  30. ----
  31. .. rst-class:: classref-descriptions-group
  32. Enumerations
  33. ------------
  34. .. _enum_VisualScriptYieldSignal_CallMode:
  35. .. rst-class:: classref-enumeration
  36. enum **CallMode**:
  37. .. _class_VisualScriptYieldSignal_constant_CALL_MODE_SELF:
  38. .. rst-class:: classref-enumeration-constant
  39. :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` **CALL_MODE_SELF** = ``0``
  40. A signal from this :ref:`Object<class_Object>` will be used.
  41. .. _class_VisualScriptYieldSignal_constant_CALL_MODE_NODE_PATH:
  42. .. rst-class:: classref-enumeration-constant
  43. :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` **CALL_MODE_NODE_PATH** = ``1``
  44. A signal from the given :ref:`Node<class_Node>` in the scene tree will be used.
  45. .. _class_VisualScriptYieldSignal_constant_CALL_MODE_INSTANCE:
  46. .. rst-class:: classref-enumeration-constant
  47. :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` **CALL_MODE_INSTANCE** = ``2``
  48. A signal from an instanced node with the given type will be used.
  49. .. rst-class:: classref-section-separator
  50. ----
  51. .. rst-class:: classref-descriptions-group
  52. Property Descriptions
  53. ---------------------
  54. .. _class_VisualScriptYieldSignal_property_base_type:
  55. .. rst-class:: classref-property
  56. :ref:`String<class_String>` **base_type** = ``"Object"``
  57. .. rst-class:: classref-property-setget
  58. - void **set_base_type** **(** :ref:`String<class_String>` value **)**
  59. - :ref:`String<class_String>` **get_base_type** **(** **)**
  60. The base type to be used when :ref:`call_mode<class_VisualScriptYieldSignal_property_call_mode>` is set to :ref:`CALL_MODE_INSTANCE<class_VisualScriptYieldSignal_constant_CALL_MODE_INSTANCE>`.
  61. .. rst-class:: classref-item-separator
  62. ----
  63. .. _class_VisualScriptYieldSignal_property_call_mode:
  64. .. rst-class:: classref-property
  65. :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` **call_mode** = ``0``
  66. .. rst-class:: classref-property-setget
  67. - void **set_call_mode** **(** :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` value **)**
  68. - :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` **get_call_mode** **(** **)**
  69. ``call_mode`` determines the target object to wait for the signal emission. See :ref:`CallMode<enum_VisualScriptYieldSignal_CallMode>` for options.
  70. .. rst-class:: classref-item-separator
  71. ----
  72. .. _class_VisualScriptYieldSignal_property_node_path:
  73. .. rst-class:: classref-property
  74. :ref:`NodePath<class_NodePath>` **node_path**
  75. .. rst-class:: classref-property-setget
  76. - void **set_base_path** **(** :ref:`NodePath<class_NodePath>` value **)**
  77. - :ref:`NodePath<class_NodePath>` **get_base_path** **(** **)**
  78. The node path to use when :ref:`call_mode<class_VisualScriptYieldSignal_property_call_mode>` is set to :ref:`CALL_MODE_NODE_PATH<class_VisualScriptYieldSignal_constant_CALL_MODE_NODE_PATH>`.
  79. .. rst-class:: classref-item-separator
  80. ----
  81. .. _class_VisualScriptYieldSignal_property_signal:
  82. .. rst-class:: classref-property
  83. :ref:`String<class_String>` **signal** = ``""``
  84. .. rst-class:: classref-property-setget
  85. - void **set_signal** **(** :ref:`String<class_String>` value **)**
  86. - :ref:`String<class_String>` **get_signal** **(** **)**
  87. The signal name to be waited for.
  88. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  89. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  90. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  91. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`