class_visualscriptyieldsignal.rst 5.3 KB

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