class_scenetree.rst 50 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855
  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/doc/classes/SceneTree.xml.
  6. .. _class_SceneTree:
  7. SceneTree
  8. =========
  9. **Inherits:** :ref:`MainLoop<class_MainLoop>` **<** :ref:`Object<class_Object>`
  10. Manages the game loop via a hierarchy of nodes.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. As one of the most important classes, the **SceneTree** manages the hierarchy of nodes in a scene, as well as scenes themselves. Nodes can be added, fetched and removed. The whole scene tree (and thus the current scene) can be paused. Scenes can be loaded, switched and reloaded.
  15. You can also use the **SceneTree** to organize your nodes into **groups**: every node can be added to as many groups as you want to create, e.g. an "enemy" group. You can then iterate these groups or even call methods and set properties on all the nodes belonging to any given group.
  16. \ **SceneTree** is the default :ref:`MainLoop<class_MainLoop>` implementation used by the engine, and is thus in charge of the game loop.
  17. .. rst-class:: classref-introduction-group
  18. Tutorials
  19. ---------
  20. - :doc:`SceneTree <../tutorials/scripting/scene_tree>`
  21. - :doc:`Multiple resolutions <../tutorials/rendering/multiple_resolutions>`
  22. .. rst-class:: classref-reftable-group
  23. Properties
  24. ----------
  25. .. table::
  26. :widths: auto
  27. +-----------------------------+------------------------------------------------------------------------------+-----------+
  28. | :ref:`bool<class_bool>` | :ref:`auto_accept_quit<class_SceneTree_property_auto_accept_quit>` | ``true`` |
  29. +-----------------------------+------------------------------------------------------------------------------+-----------+
  30. | :ref:`Node<class_Node>` | :ref:`current_scene<class_SceneTree_property_current_scene>` | |
  31. +-----------------------------+------------------------------------------------------------------------------+-----------+
  32. | :ref:`bool<class_bool>` | :ref:`debug_collisions_hint<class_SceneTree_property_debug_collisions_hint>` | ``false`` |
  33. +-----------------------------+------------------------------------------------------------------------------+-----------+
  34. | :ref:`bool<class_bool>` | :ref:`debug_navigation_hint<class_SceneTree_property_debug_navigation_hint>` | ``false`` |
  35. +-----------------------------+------------------------------------------------------------------------------+-----------+
  36. | :ref:`bool<class_bool>` | :ref:`debug_paths_hint<class_SceneTree_property_debug_paths_hint>` | ``false`` |
  37. +-----------------------------+------------------------------------------------------------------------------+-----------+
  38. | :ref:`Node<class_Node>` | :ref:`edited_scene_root<class_SceneTree_property_edited_scene_root>` | |
  39. +-----------------------------+------------------------------------------------------------------------------+-----------+
  40. | :ref:`bool<class_bool>` | :ref:`multiplayer_poll<class_SceneTree_property_multiplayer_poll>` | ``true`` |
  41. +-----------------------------+------------------------------------------------------------------------------+-----------+
  42. | :ref:`bool<class_bool>` | :ref:`paused<class_SceneTree_property_paused>` | ``false`` |
  43. +-----------------------------+------------------------------------------------------------------------------+-----------+
  44. | :ref:`bool<class_bool>` | :ref:`physics_interpolation<class_SceneTree_property_physics_interpolation>` | ``false`` |
  45. +-----------------------------+------------------------------------------------------------------------------+-----------+
  46. | :ref:`bool<class_bool>` | :ref:`quit_on_go_back<class_SceneTree_property_quit_on_go_back>` | ``true`` |
  47. +-----------------------------+------------------------------------------------------------------------------+-----------+
  48. | :ref:`Window<class_Window>` | :ref:`root<class_SceneTree_property_root>` | |
  49. +-----------------------------+------------------------------------------------------------------------------+-----------+
  50. .. rst-class:: classref-reftable-group
  51. Methods
  52. -------
  53. .. table::
  54. :widths: auto
  55. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  56. | |void| | :ref:`call_group<class_SceneTree_method_call_group>`\ (\ group\: :ref:`StringName<class_StringName>`, method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| |
  57. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  58. | |void| | :ref:`call_group_flags<class_SceneTree_method_call_group_flags>`\ (\ flags\: :ref:`int<class_int>`, group\: :ref:`StringName<class_StringName>`, method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| |
  59. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  60. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`change_scene_to_file<class_SceneTree_method_change_scene_to_file>`\ (\ path\: :ref:`String<class_String>`\ ) |
  61. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  62. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`change_scene_to_packed<class_SceneTree_method_change_scene_to_packed>`\ (\ packed_scene\: :ref:`PackedScene<class_PackedScene>`\ ) |
  63. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  64. | :ref:`SceneTreeTimer<class_SceneTreeTimer>` | :ref:`create_timer<class_SceneTree_method_create_timer>`\ (\ time_sec\: :ref:`float<class_float>`, process_always\: :ref:`bool<class_bool>` = true, process_in_physics\: :ref:`bool<class_bool>` = false, ignore_time_scale\: :ref:`bool<class_bool>` = false\ ) |
  65. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  66. | :ref:`Tween<class_Tween>` | :ref:`create_tween<class_SceneTree_method_create_tween>`\ (\ ) |
  67. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  68. | :ref:`Node<class_Node>` | :ref:`get_first_node_in_group<class_SceneTree_method_get_first_node_in_group>`\ (\ group\: :ref:`StringName<class_StringName>`\ ) |
  69. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  70. | :ref:`int<class_int>` | :ref:`get_frame<class_SceneTree_method_get_frame>`\ (\ ) |const| |
  71. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  72. | :ref:`MultiplayerAPI<class_MultiplayerAPI>` | :ref:`get_multiplayer<class_SceneTree_method_get_multiplayer>`\ (\ for_path\: :ref:`NodePath<class_NodePath>` = NodePath("")\ ) |const| |
  73. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  74. | :ref:`int<class_int>` | :ref:`get_node_count<class_SceneTree_method_get_node_count>`\ (\ ) |const| |
  75. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  76. | :ref:`int<class_int>` | :ref:`get_node_count_in_group<class_SceneTree_method_get_node_count_in_group>`\ (\ group\: :ref:`StringName<class_StringName>`\ ) |const| |
  77. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  78. | :ref:`Array<class_Array>`\[:ref:`Node<class_Node>`\] | :ref:`get_nodes_in_group<class_SceneTree_method_get_nodes_in_group>`\ (\ group\: :ref:`StringName<class_StringName>`\ ) |
  79. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  80. | :ref:`Array<class_Array>`\[:ref:`Tween<class_Tween>`\] | :ref:`get_processed_tweens<class_SceneTree_method_get_processed_tweens>`\ (\ ) |
  81. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  82. | :ref:`bool<class_bool>` | :ref:`has_group<class_SceneTree_method_has_group>`\ (\ name\: :ref:`StringName<class_StringName>`\ ) |const| |
  83. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  84. | |void| | :ref:`notify_group<class_SceneTree_method_notify_group>`\ (\ group\: :ref:`StringName<class_StringName>`, notification\: :ref:`int<class_int>`\ ) |
  85. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  86. | |void| | :ref:`notify_group_flags<class_SceneTree_method_notify_group_flags>`\ (\ call_flags\: :ref:`int<class_int>`, group\: :ref:`StringName<class_StringName>`, notification\: :ref:`int<class_int>`\ ) |
  87. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  88. | |void| | :ref:`queue_delete<class_SceneTree_method_queue_delete>`\ (\ obj\: :ref:`Object<class_Object>`\ ) |
  89. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  90. | |void| | :ref:`quit<class_SceneTree_method_quit>`\ (\ exit_code\: :ref:`int<class_int>` = 0\ ) |
  91. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  92. | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`reload_current_scene<class_SceneTree_method_reload_current_scene>`\ (\ ) |
  93. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | |void| | :ref:`set_group<class_SceneTree_method_set_group>`\ (\ group\: :ref:`StringName<class_StringName>`, property\: :ref:`String<class_String>`, value\: :ref:`Variant<class_Variant>`\ ) |
  95. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | |void| | :ref:`set_group_flags<class_SceneTree_method_set_group_flags>`\ (\ call_flags\: :ref:`int<class_int>`, group\: :ref:`StringName<class_StringName>`, property\: :ref:`String<class_String>`, value\: :ref:`Variant<class_Variant>`\ ) |
  97. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  98. | |void| | :ref:`set_multiplayer<class_SceneTree_method_set_multiplayer>`\ (\ multiplayer\: :ref:`MultiplayerAPI<class_MultiplayerAPI>`, root_path\: :ref:`NodePath<class_NodePath>` = NodePath("")\ ) |
  99. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  100. | |void| | :ref:`unload_current_scene<class_SceneTree_method_unload_current_scene>`\ (\ ) |
  101. +--------------------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  102. .. rst-class:: classref-section-separator
  103. ----
  104. .. rst-class:: classref-descriptions-group
  105. Signals
  106. -------
  107. .. _class_SceneTree_signal_node_added:
  108. .. rst-class:: classref-signal
  109. **node_added**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_SceneTree_signal_node_added>`
  110. Emitted when the ``node`` enters this tree.
  111. .. rst-class:: classref-item-separator
  112. ----
  113. .. _class_SceneTree_signal_node_configuration_warning_changed:
  114. .. rst-class:: classref-signal
  115. **node_configuration_warning_changed**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_SceneTree_signal_node_configuration_warning_changed>`
  116. Emitted when the ``node``'s :ref:`Node.update_configuration_warnings<class_Node_method_update_configuration_warnings>` is called. Only emitted in the editor.
  117. .. rst-class:: classref-item-separator
  118. ----
  119. .. _class_SceneTree_signal_node_removed:
  120. .. rst-class:: classref-signal
  121. **node_removed**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_SceneTree_signal_node_removed>`
  122. Emitted when the ``node`` exits this tree.
  123. .. rst-class:: classref-item-separator
  124. ----
  125. .. _class_SceneTree_signal_node_renamed:
  126. .. rst-class:: classref-signal
  127. **node_renamed**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_SceneTree_signal_node_renamed>`
  128. Emitted when the ``node``'s :ref:`Node.name<class_Node_property_name>` is changed.
  129. .. rst-class:: classref-item-separator
  130. ----
  131. .. _class_SceneTree_signal_physics_frame:
  132. .. rst-class:: classref-signal
  133. **physics_frame**\ (\ ) :ref:`🔗<class_SceneTree_signal_physics_frame>`
  134. Emitted immediately before :ref:`Node._physics_process<class_Node_private_method__physics_process>` is called on every node in this tree.
  135. .. rst-class:: classref-item-separator
  136. ----
  137. .. _class_SceneTree_signal_process_frame:
  138. .. rst-class:: classref-signal
  139. **process_frame**\ (\ ) :ref:`🔗<class_SceneTree_signal_process_frame>`
  140. Emitted immediately before :ref:`Node._process<class_Node_private_method__process>` is called on every node in this tree.
  141. .. rst-class:: classref-item-separator
  142. ----
  143. .. _class_SceneTree_signal_tree_changed:
  144. .. rst-class:: classref-signal
  145. **tree_changed**\ (\ ) :ref:`🔗<class_SceneTree_signal_tree_changed>`
  146. Emitted any time the tree's hierarchy changes (nodes being moved, renamed, etc.).
  147. .. rst-class:: classref-item-separator
  148. ----
  149. .. _class_SceneTree_signal_tree_process_mode_changed:
  150. .. rst-class:: classref-signal
  151. **tree_process_mode_changed**\ (\ ) :ref:`🔗<class_SceneTree_signal_tree_process_mode_changed>`
  152. Emitted when the :ref:`Node.process_mode<class_Node_property_process_mode>` of any node inside the tree is changed. Only emitted in the editor, to update the visibility of disabled nodes.
  153. .. rst-class:: classref-section-separator
  154. ----
  155. .. rst-class:: classref-descriptions-group
  156. Enumerations
  157. ------------
  158. .. _enum_SceneTree_GroupCallFlags:
  159. .. rst-class:: classref-enumeration
  160. enum **GroupCallFlags**: :ref:`🔗<enum_SceneTree_GroupCallFlags>`
  161. .. _class_SceneTree_constant_GROUP_CALL_DEFAULT:
  162. .. rst-class:: classref-enumeration-constant
  163. :ref:`GroupCallFlags<enum_SceneTree_GroupCallFlags>` **GROUP_CALL_DEFAULT** = ``0``
  164. Call nodes within a group with no special behavior (default).
  165. .. _class_SceneTree_constant_GROUP_CALL_REVERSE:
  166. .. rst-class:: classref-enumeration-constant
  167. :ref:`GroupCallFlags<enum_SceneTree_GroupCallFlags>` **GROUP_CALL_REVERSE** = ``1``
  168. Call nodes within a group in reverse tree hierarchy order (all nested children are called before their respective parent nodes).
  169. .. _class_SceneTree_constant_GROUP_CALL_DEFERRED:
  170. .. rst-class:: classref-enumeration-constant
  171. :ref:`GroupCallFlags<enum_SceneTree_GroupCallFlags>` **GROUP_CALL_DEFERRED** = ``2``
  172. Call nodes within a group at the end of the current frame (can be either process or physics frame), similar to :ref:`Object.call_deferred<class_Object_method_call_deferred>`.
  173. .. _class_SceneTree_constant_GROUP_CALL_UNIQUE:
  174. .. rst-class:: classref-enumeration-constant
  175. :ref:`GroupCallFlags<enum_SceneTree_GroupCallFlags>` **GROUP_CALL_UNIQUE** = ``4``
  176. Call nodes within a group only once, even if the call is executed many times in the same frame. Must be combined with :ref:`GROUP_CALL_DEFERRED<class_SceneTree_constant_GROUP_CALL_DEFERRED>` to work.
  177. \ **Note:** Different arguments are not taken into account. Therefore, when the same call is executed with different arguments, only the first call will be performed.
  178. .. rst-class:: classref-section-separator
  179. ----
  180. .. rst-class:: classref-descriptions-group
  181. Property Descriptions
  182. ---------------------
  183. .. _class_SceneTree_property_auto_accept_quit:
  184. .. rst-class:: classref-property
  185. :ref:`bool<class_bool>` **auto_accept_quit** = ``true`` :ref:`🔗<class_SceneTree_property_auto_accept_quit>`
  186. .. rst-class:: classref-property-setget
  187. - |void| **set_auto_accept_quit**\ (\ value\: :ref:`bool<class_bool>`\ )
  188. - :ref:`bool<class_bool>` **is_auto_accept_quit**\ (\ )
  189. If ``true``, the application automatically accepts quitting requests.
  190. For mobile platforms, see :ref:`quit_on_go_back<class_SceneTree_property_quit_on_go_back>`.
  191. .. rst-class:: classref-item-separator
  192. ----
  193. .. _class_SceneTree_property_current_scene:
  194. .. rst-class:: classref-property
  195. :ref:`Node<class_Node>` **current_scene** :ref:`🔗<class_SceneTree_property_current_scene>`
  196. .. rst-class:: classref-property-setget
  197. - |void| **set_current_scene**\ (\ value\: :ref:`Node<class_Node>`\ )
  198. - :ref:`Node<class_Node>` **get_current_scene**\ (\ )
  199. The root node of the currently loaded main scene, usually as a direct child of :ref:`root<class_SceneTree_property_root>`. See also :ref:`change_scene_to_file<class_SceneTree_method_change_scene_to_file>`, :ref:`change_scene_to_packed<class_SceneTree_method_change_scene_to_packed>`, and :ref:`reload_current_scene<class_SceneTree_method_reload_current_scene>`.
  200. \ **Warning:** Setting this property directly may not work as expected, as it does *not* add or remove any nodes from this tree.
  201. .. rst-class:: classref-item-separator
  202. ----
  203. .. _class_SceneTree_property_debug_collisions_hint:
  204. .. rst-class:: classref-property
  205. :ref:`bool<class_bool>` **debug_collisions_hint** = ``false`` :ref:`🔗<class_SceneTree_property_debug_collisions_hint>`
  206. .. rst-class:: classref-property-setget
  207. - |void| **set_debug_collisions_hint**\ (\ value\: :ref:`bool<class_bool>`\ )
  208. - :ref:`bool<class_bool>` **is_debugging_collisions_hint**\ (\ )
  209. If ``true``, collision shapes will be visible when running the game from the editor for debugging purposes.
  210. \ **Note:** This property is not designed to be changed at run-time. Changing the value of :ref:`debug_collisions_hint<class_SceneTree_property_debug_collisions_hint>` while the project is running will not have the desired effect.
  211. .. rst-class:: classref-item-separator
  212. ----
  213. .. _class_SceneTree_property_debug_navigation_hint:
  214. .. rst-class:: classref-property
  215. :ref:`bool<class_bool>` **debug_navigation_hint** = ``false`` :ref:`🔗<class_SceneTree_property_debug_navigation_hint>`
  216. .. rst-class:: classref-property-setget
  217. - |void| **set_debug_navigation_hint**\ (\ value\: :ref:`bool<class_bool>`\ )
  218. - :ref:`bool<class_bool>` **is_debugging_navigation_hint**\ (\ )
  219. If ``true``, navigation polygons will be visible when running the game from the editor for debugging purposes.
  220. \ **Note:** This property is not designed to be changed at run-time. Changing the value of :ref:`debug_navigation_hint<class_SceneTree_property_debug_navigation_hint>` while the project is running will not have the desired effect.
  221. .. rst-class:: classref-item-separator
  222. ----
  223. .. _class_SceneTree_property_debug_paths_hint:
  224. .. rst-class:: classref-property
  225. :ref:`bool<class_bool>` **debug_paths_hint** = ``false`` :ref:`🔗<class_SceneTree_property_debug_paths_hint>`
  226. .. rst-class:: classref-property-setget
  227. - |void| **set_debug_paths_hint**\ (\ value\: :ref:`bool<class_bool>`\ )
  228. - :ref:`bool<class_bool>` **is_debugging_paths_hint**\ (\ )
  229. If ``true``, curves from :ref:`Path2D<class_Path2D>` and :ref:`Path3D<class_Path3D>` nodes will be visible when running the game from the editor for debugging purposes.
  230. \ **Note:** This property is not designed to be changed at run-time. Changing the value of :ref:`debug_paths_hint<class_SceneTree_property_debug_paths_hint>` while the project is running will not have the desired effect.
  231. .. rst-class:: classref-item-separator
  232. ----
  233. .. _class_SceneTree_property_edited_scene_root:
  234. .. rst-class:: classref-property
  235. :ref:`Node<class_Node>` **edited_scene_root** :ref:`🔗<class_SceneTree_property_edited_scene_root>`
  236. .. rst-class:: classref-property-setget
  237. - |void| **set_edited_scene_root**\ (\ value\: :ref:`Node<class_Node>`\ )
  238. - :ref:`Node<class_Node>` **get_edited_scene_root**\ (\ )
  239. The root of the scene currently being edited in the editor. This is usually a direct child of :ref:`root<class_SceneTree_property_root>`.
  240. \ **Note:** This property does nothing in release builds.
  241. .. rst-class:: classref-item-separator
  242. ----
  243. .. _class_SceneTree_property_multiplayer_poll:
  244. .. rst-class:: classref-property
  245. :ref:`bool<class_bool>` **multiplayer_poll** = ``true`` :ref:`🔗<class_SceneTree_property_multiplayer_poll>`
  246. .. rst-class:: classref-property-setget
  247. - |void| **set_multiplayer_poll_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  248. - :ref:`bool<class_bool>` **is_multiplayer_poll_enabled**\ (\ )
  249. If ``true`` (default value), enables automatic polling of the :ref:`MultiplayerAPI<class_MultiplayerAPI>` for this SceneTree during :ref:`process_frame<class_SceneTree_signal_process_frame>`.
  250. If ``false``, you need to manually call :ref:`MultiplayerAPI.poll<class_MultiplayerAPI_method_poll>` to process network packets and deliver RPCs. This allows running RPCs in a different loop (e.g. physics, thread, specific time step) and for manual :ref:`Mutex<class_Mutex>` protection when accessing the :ref:`MultiplayerAPI<class_MultiplayerAPI>` from threads.
  251. .. rst-class:: classref-item-separator
  252. ----
  253. .. _class_SceneTree_property_paused:
  254. .. rst-class:: classref-property
  255. :ref:`bool<class_bool>` **paused** = ``false`` :ref:`🔗<class_SceneTree_property_paused>`
  256. .. rst-class:: classref-property-setget
  257. - |void| **set_pause**\ (\ value\: :ref:`bool<class_bool>`\ )
  258. - :ref:`bool<class_bool>` **is_paused**\ (\ )
  259. If ``true``, the scene tree is considered paused. This causes the following behavior:
  260. - 2D and 3D physics will be stopped, as well as collision detection and related signals.
  261. - Depending on each node's :ref:`Node.process_mode<class_Node_property_process_mode>`, their :ref:`Node._process<class_Node_private_method__process>`, :ref:`Node._physics_process<class_Node_private_method__physics_process>` and :ref:`Node._input<class_Node_private_method__input>` callback methods may not called anymore.
  262. .. rst-class:: classref-item-separator
  263. ----
  264. .. _class_SceneTree_property_physics_interpolation:
  265. .. rst-class:: classref-property
  266. :ref:`bool<class_bool>` **physics_interpolation** = ``false`` :ref:`🔗<class_SceneTree_property_physics_interpolation>`
  267. .. rst-class:: classref-property-setget
  268. - |void| **set_physics_interpolation_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  269. - :ref:`bool<class_bool>` **is_physics_interpolation_enabled**\ (\ )
  270. If ``true``, the renderer will interpolate the transforms of physics objects between the last two transforms, so that smooth motion is seen even when physics ticks do not coincide with rendered frames.
  271. The default value of this property is controlled by :ref:`ProjectSettings.physics/common/physics_interpolation<class_ProjectSettings_property_physics/common/physics_interpolation>`.
  272. .. rst-class:: classref-item-separator
  273. ----
  274. .. _class_SceneTree_property_quit_on_go_back:
  275. .. rst-class:: classref-property
  276. :ref:`bool<class_bool>` **quit_on_go_back** = ``true`` :ref:`🔗<class_SceneTree_property_quit_on_go_back>`
  277. .. rst-class:: classref-property-setget
  278. - |void| **set_quit_on_go_back**\ (\ value\: :ref:`bool<class_bool>`\ )
  279. - :ref:`bool<class_bool>` **is_quit_on_go_back**\ (\ )
  280. If ``true``, the application quits automatically when navigating back (e.g. using the system "Back" button on Android).
  281. To handle 'Go Back' button when this option is disabled, use :ref:`DisplayServer.WINDOW_EVENT_GO_BACK_REQUEST<class_DisplayServer_constant_WINDOW_EVENT_GO_BACK_REQUEST>`.
  282. .. rst-class:: classref-item-separator
  283. ----
  284. .. _class_SceneTree_property_root:
  285. .. rst-class:: classref-property
  286. :ref:`Window<class_Window>` **root** :ref:`🔗<class_SceneTree_property_root>`
  287. .. rst-class:: classref-property-setget
  288. - :ref:`Window<class_Window>` **get_root**\ (\ )
  289. The tree's root :ref:`Window<class_Window>`. This is top-most :ref:`Node<class_Node>` of the scene tree, and is always present. An absolute :ref:`NodePath<class_NodePath>` always starts from this node. Children of the root node may include the loaded :ref:`current_scene<class_SceneTree_property_current_scene>`, as well as any :doc:`AutoLoad <../tutorials/scripting/singletons_autoload>` configured in the Project Settings.
  290. \ **Warning:** Do not delete this node. This will result in unstable behavior, followed by a crash.
  291. .. rst-class:: classref-section-separator
  292. ----
  293. .. rst-class:: classref-descriptions-group
  294. Method Descriptions
  295. -------------------
  296. .. _class_SceneTree_method_call_group:
  297. .. rst-class:: classref-method
  298. |void| **call_group**\ (\ group\: :ref:`StringName<class_StringName>`, method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| :ref:`🔗<class_SceneTree_method_call_group>`
  299. Calls ``method`` on each node inside this tree added to the given ``group``. You can pass arguments to ``method`` by specifying them at the end of this method call. Nodes that cannot call ``method`` (either because the method doesn't exist or the arguments do not match) are ignored. See also :ref:`set_group<class_SceneTree_method_set_group>` and :ref:`notify_group<class_SceneTree_method_notify_group>`.
  300. \ **Note:** This method acts immediately on all selected nodes at once, which may cause stuttering in some performance-intensive situations.
  301. \ **Note:** In C#, ``method`` must be in snake_case when referring to built-in Godot methods. Prefer using the names exposed in the ``MethodName`` class to avoid allocating a new :ref:`StringName<class_StringName>` on each call.
  302. .. rst-class:: classref-item-separator
  303. ----
  304. .. _class_SceneTree_method_call_group_flags:
  305. .. rst-class:: classref-method
  306. |void| **call_group_flags**\ (\ flags\: :ref:`int<class_int>`, group\: :ref:`StringName<class_StringName>`, method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| :ref:`🔗<class_SceneTree_method_call_group_flags>`
  307. Calls the given ``method`` on each node inside this tree added to the given ``group``. Use ``flags`` to customize this method's behavior (see :ref:`GroupCallFlags<enum_SceneTree_GroupCallFlags>`). Additional arguments for ``method`` can be passed at the end of this method. Nodes that cannot call ``method`` (either because the method doesn't exist or the arguments do not match) are ignored.
  308. ::
  309. # Calls "hide" to all nodes of the "enemies" group, at the end of the frame and in reverse tree order.
  310. get_tree().call_group_flags(
  311. SceneTree.GROUP_CALL_DEFERRED | SceneTree.GROUP_CALL_REVERSE,
  312. "enemies", "hide")
  313. \ **Note:** In C#, ``method`` must be in snake_case when referring to built-in Godot methods. Prefer using the names exposed in the ``MethodName`` class to avoid allocating a new :ref:`StringName<class_StringName>` on each call.
  314. .. rst-class:: classref-item-separator
  315. ----
  316. .. _class_SceneTree_method_change_scene_to_file:
  317. .. rst-class:: classref-method
  318. :ref:`Error<enum_@GlobalScope_Error>` **change_scene_to_file**\ (\ path\: :ref:`String<class_String>`\ ) :ref:`🔗<class_SceneTree_method_change_scene_to_file>`
  319. Changes the running scene to the one at the given ``path``, after loading it into a :ref:`PackedScene<class_PackedScene>` and creating a new instance.
  320. Returns :ref:`@GlobalScope.OK<class_@GlobalScope_constant_OK>` on success, :ref:`@GlobalScope.ERR_CANT_OPEN<class_@GlobalScope_constant_ERR_CANT_OPEN>` if the ``path`` cannot be loaded into a :ref:`PackedScene<class_PackedScene>`, or :ref:`@GlobalScope.ERR_CANT_CREATE<class_@GlobalScope_constant_ERR_CANT_CREATE>` if that scene cannot be instantiated.
  321. \ **Note:** See :ref:`change_scene_to_packed<class_SceneTree_method_change_scene_to_packed>` for details on the order of operations.
  322. .. rst-class:: classref-item-separator
  323. ----
  324. .. _class_SceneTree_method_change_scene_to_packed:
  325. .. rst-class:: classref-method
  326. :ref:`Error<enum_@GlobalScope_Error>` **change_scene_to_packed**\ (\ packed_scene\: :ref:`PackedScene<class_PackedScene>`\ ) :ref:`🔗<class_SceneTree_method_change_scene_to_packed>`
  327. Changes the running scene to a new instance of the given :ref:`PackedScene<class_PackedScene>` (which must be valid).
  328. Returns :ref:`@GlobalScope.OK<class_@GlobalScope_constant_OK>` on success, :ref:`@GlobalScope.ERR_CANT_CREATE<class_@GlobalScope_constant_ERR_CANT_CREATE>` if the scene cannot be instantiated, or :ref:`@GlobalScope.ERR_INVALID_PARAMETER<class_@GlobalScope_constant_ERR_INVALID_PARAMETER>` if the scene is invalid.
  329. \ **Note:** Operations happen in the following order when :ref:`change_scene_to_packed<class_SceneTree_method_change_scene_to_packed>` is called:
  330. 1. The current scene node is immediately removed from the tree. From that point, :ref:`Node.get_tree<class_Node_method_get_tree>` called on the current (outgoing) scene will return ``null``. :ref:`current_scene<class_SceneTree_property_current_scene>` will be ``null``, too, because the new scene is not available yet.
  331. 2. At the end of the frame, the formerly current scene, already removed from the tree, will be deleted (freed from memory) and then the new scene will be instantiated and added to the tree. :ref:`Node.get_tree<class_Node_method_get_tree>` and :ref:`current_scene<class_SceneTree_property_current_scene>` will be back to working as usual.
  332. This ensures that both scenes aren't running at the same time, while still freeing the previous scene in a safe way similar to :ref:`Node.queue_free<class_Node_method_queue_free>`.
  333. .. rst-class:: classref-item-separator
  334. ----
  335. .. _class_SceneTree_method_create_timer:
  336. .. rst-class:: classref-method
  337. :ref:`SceneTreeTimer<class_SceneTreeTimer>` **create_timer**\ (\ time_sec\: :ref:`float<class_float>`, process_always\: :ref:`bool<class_bool>` = true, process_in_physics\: :ref:`bool<class_bool>` = false, ignore_time_scale\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_SceneTree_method_create_timer>`
  338. Returns a new :ref:`SceneTreeTimer<class_SceneTreeTimer>`. After ``time_sec`` in seconds have passed, the timer will emit :ref:`SceneTreeTimer.timeout<class_SceneTreeTimer_signal_timeout>` and will be automatically freed.
  339. If ``process_always`` is ``false``, the timer will be paused when setting :ref:`paused<class_SceneTree_property_paused>` to ``true``.
  340. If ``process_in_physics`` is ``true``, the timer will update at the end of the physics frame, instead of the process frame.
  341. If ``ignore_time_scale`` is ``true``, the timer will ignore :ref:`Engine.time_scale<class_Engine_property_time_scale>` and update with the real, elapsed time.
  342. This method is commonly used to create a one-shot delay timer, as in the following example:
  343. .. tabs::
  344. .. code-tab:: gdscript
  345. func some_function():
  346. print("start")
  347. await get_tree().create_timer(1.0).timeout
  348. print("end")
  349. .. code-tab:: csharp
  350. public async Task SomeFunction()
  351. {
  352. GD.Print("start");
  353. await ToSignal(GetTree().CreateTimer(1.0f), SceneTreeTimer.SignalName.Timeout);
  354. GD.Print("end");
  355. }
  356. \ **Note:** The timer is always updated *after* all of the nodes in the tree. A node's :ref:`Node._process<class_Node_private_method__process>` method would be called before the timer updates (or :ref:`Node._physics_process<class_Node_private_method__physics_process>` if ``process_in_physics`` is set to ``true``).
  357. .. rst-class:: classref-item-separator
  358. ----
  359. .. _class_SceneTree_method_create_tween:
  360. .. rst-class:: classref-method
  361. :ref:`Tween<class_Tween>` **create_tween**\ (\ ) :ref:`🔗<class_SceneTree_method_create_tween>`
  362. Creates and returns a new :ref:`Tween<class_Tween>` processed in this tree. The Tween will start automatically on the next process frame or physics frame (depending on its :ref:`TweenProcessMode<enum_Tween_TweenProcessMode>`).
  363. \ **Note:** A :ref:`Tween<class_Tween>` created using this method is not bound to any :ref:`Node<class_Node>`. It may keep working until there is nothing left to animate. If you want the :ref:`Tween<class_Tween>` to be automatically killed when the :ref:`Node<class_Node>` is freed, use :ref:`Node.create_tween<class_Node_method_create_tween>` or :ref:`Tween.bind_node<class_Tween_method_bind_node>`.
  364. .. rst-class:: classref-item-separator
  365. ----
  366. .. _class_SceneTree_method_get_first_node_in_group:
  367. .. rst-class:: classref-method
  368. :ref:`Node<class_Node>` **get_first_node_in_group**\ (\ group\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_SceneTree_method_get_first_node_in_group>`
  369. Returns the first :ref:`Node<class_Node>` found inside the tree, that has been added to the given ``group``, in scene hierarchy order. Returns ``null`` if no match is found. See also :ref:`get_nodes_in_group<class_SceneTree_method_get_nodes_in_group>`.
  370. .. rst-class:: classref-item-separator
  371. ----
  372. .. _class_SceneTree_method_get_frame:
  373. .. rst-class:: classref-method
  374. :ref:`int<class_int>` **get_frame**\ (\ ) |const| :ref:`🔗<class_SceneTree_method_get_frame>`
  375. Returns how many frames have been processed, since the application started. This is *not* a measurement of elapsed time.
  376. .. rst-class:: classref-item-separator
  377. ----
  378. .. _class_SceneTree_method_get_multiplayer:
  379. .. rst-class:: classref-method
  380. :ref:`MultiplayerAPI<class_MultiplayerAPI>` **get_multiplayer**\ (\ for_path\: :ref:`NodePath<class_NodePath>` = NodePath("")\ ) |const| :ref:`🔗<class_SceneTree_method_get_multiplayer>`
  381. Searches for the :ref:`MultiplayerAPI<class_MultiplayerAPI>` configured for the given path, if one does not exist it searches the parent paths until one is found. If the path is empty, or none is found, the default one is returned. See :ref:`set_multiplayer<class_SceneTree_method_set_multiplayer>`.
  382. .. rst-class:: classref-item-separator
  383. ----
  384. .. _class_SceneTree_method_get_node_count:
  385. .. rst-class:: classref-method
  386. :ref:`int<class_int>` **get_node_count**\ (\ ) |const| :ref:`🔗<class_SceneTree_method_get_node_count>`
  387. Returns the number of nodes inside this tree.
  388. .. rst-class:: classref-item-separator
  389. ----
  390. .. _class_SceneTree_method_get_node_count_in_group:
  391. .. rst-class:: classref-method
  392. :ref:`int<class_int>` **get_node_count_in_group**\ (\ group\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`🔗<class_SceneTree_method_get_node_count_in_group>`
  393. Returns the number of nodes assigned to the given group.
  394. .. rst-class:: classref-item-separator
  395. ----
  396. .. _class_SceneTree_method_get_nodes_in_group:
  397. .. rst-class:: classref-method
  398. :ref:`Array<class_Array>`\[:ref:`Node<class_Node>`\] **get_nodes_in_group**\ (\ group\: :ref:`StringName<class_StringName>`\ ) :ref:`🔗<class_SceneTree_method_get_nodes_in_group>`
  399. Returns an :ref:`Array<class_Array>` containing all nodes inside this tree, that have been added to the given ``group``, in scene hierarchy order.
  400. .. rst-class:: classref-item-separator
  401. ----
  402. .. _class_SceneTree_method_get_processed_tweens:
  403. .. rst-class:: classref-method
  404. :ref:`Array<class_Array>`\[:ref:`Tween<class_Tween>`\] **get_processed_tweens**\ (\ ) :ref:`🔗<class_SceneTree_method_get_processed_tweens>`
  405. Returns an :ref:`Array<class_Array>` of currently existing :ref:`Tween<class_Tween>`\ s in the tree, including paused tweens.
  406. .. rst-class:: classref-item-separator
  407. ----
  408. .. _class_SceneTree_method_has_group:
  409. .. rst-class:: classref-method
  410. :ref:`bool<class_bool>` **has_group**\ (\ name\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`🔗<class_SceneTree_method_has_group>`
  411. Returns ``true`` if a node added to the given group ``name`` exists in the tree.
  412. .. rst-class:: classref-item-separator
  413. ----
  414. .. _class_SceneTree_method_notify_group:
  415. .. rst-class:: classref-method
  416. |void| **notify_group**\ (\ group\: :ref:`StringName<class_StringName>`, notification\: :ref:`int<class_int>`\ ) :ref:`🔗<class_SceneTree_method_notify_group>`
  417. Calls :ref:`Object.notification<class_Object_method_notification>` with the given ``notification`` to all nodes inside this tree added to the ``group``. See also :doc:`Godot notifications <../tutorials/best_practices/godot_notifications>` and :ref:`call_group<class_SceneTree_method_call_group>` and :ref:`set_group<class_SceneTree_method_set_group>`.
  418. \ **Note:** This method acts immediately on all selected nodes at once, which may cause stuttering in some performance-intensive situations.
  419. .. rst-class:: classref-item-separator
  420. ----
  421. .. _class_SceneTree_method_notify_group_flags:
  422. .. rst-class:: classref-method
  423. |void| **notify_group_flags**\ (\ call_flags\: :ref:`int<class_int>`, group\: :ref:`StringName<class_StringName>`, notification\: :ref:`int<class_int>`\ ) :ref:`🔗<class_SceneTree_method_notify_group_flags>`
  424. Calls :ref:`Object.notification<class_Object_method_notification>` with the given ``notification`` to all nodes inside this tree added to the ``group``. Use ``call_flags`` to customize this method's behavior (see :ref:`GroupCallFlags<enum_SceneTree_GroupCallFlags>`).
  425. .. rst-class:: classref-item-separator
  426. ----
  427. .. _class_SceneTree_method_queue_delete:
  428. .. rst-class:: classref-method
  429. |void| **queue_delete**\ (\ obj\: :ref:`Object<class_Object>`\ ) :ref:`🔗<class_SceneTree_method_queue_delete>`
  430. Queues the given ``obj`` to be deleted, calling its :ref:`Object.free<class_Object_method_free>` at the end of the current frame. This method is similar to :ref:`Node.queue_free<class_Node_method_queue_free>`.
  431. .. rst-class:: classref-item-separator
  432. ----
  433. .. _class_SceneTree_method_quit:
  434. .. rst-class:: classref-method
  435. |void| **quit**\ (\ exit_code\: :ref:`int<class_int>` = 0\ ) :ref:`🔗<class_SceneTree_method_quit>`
  436. Quits the application at the end of the current iteration, with the given ``exit_code``.
  437. By convention, an exit code of ``0`` indicates success, whereas any other exit code indicates an error. For portability reasons, it should be between ``0`` and ``125`` (inclusive).
  438. \ **Note:** On iOS this method doesn't work. Instead, as recommended by the `iOS Human Interface Guidelines <https://developer.apple.com/library/archive/qa/qa1561/_index.html>`__, the user is expected to close apps via the Home button.
  439. .. rst-class:: classref-item-separator
  440. ----
  441. .. _class_SceneTree_method_reload_current_scene:
  442. .. rst-class:: classref-method
  443. :ref:`Error<enum_@GlobalScope_Error>` **reload_current_scene**\ (\ ) :ref:`🔗<class_SceneTree_method_reload_current_scene>`
  444. Reloads the currently active scene, replacing :ref:`current_scene<class_SceneTree_property_current_scene>` with a new instance of its original :ref:`PackedScene<class_PackedScene>`.
  445. Returns :ref:`@GlobalScope.OK<class_@GlobalScope_constant_OK>` on success, :ref:`@GlobalScope.ERR_UNCONFIGURED<class_@GlobalScope_constant_ERR_UNCONFIGURED>` if no :ref:`current_scene<class_SceneTree_property_current_scene>` is defined, :ref:`@GlobalScope.ERR_CANT_OPEN<class_@GlobalScope_constant_ERR_CANT_OPEN>` if :ref:`current_scene<class_SceneTree_property_current_scene>` cannot be loaded into a :ref:`PackedScene<class_PackedScene>`, or :ref:`@GlobalScope.ERR_CANT_CREATE<class_@GlobalScope_constant_ERR_CANT_CREATE>` if the scene cannot be instantiated.
  446. .. rst-class:: classref-item-separator
  447. ----
  448. .. _class_SceneTree_method_set_group:
  449. .. rst-class:: classref-method
  450. |void| **set_group**\ (\ group\: :ref:`StringName<class_StringName>`, property\: :ref:`String<class_String>`, value\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_SceneTree_method_set_group>`
  451. Sets the given ``property`` to ``value`` on all nodes inside this tree added to the given ``group``. Nodes that do not have the ``property`` are ignored. See also :ref:`call_group<class_SceneTree_method_call_group>` and :ref:`notify_group<class_SceneTree_method_notify_group>`.
  452. \ **Note:** This method acts immediately on all selected nodes at once, which may cause stuttering in some performance-intensive situations.
  453. \ **Note:** In C#, ``property`` must be in snake_case when referring to built-in Godot properties. Prefer using the names exposed in the ``PropertyName`` class to avoid allocating a new :ref:`StringName<class_StringName>` on each call.
  454. .. rst-class:: classref-item-separator
  455. ----
  456. .. _class_SceneTree_method_set_group_flags:
  457. .. rst-class:: classref-method
  458. |void| **set_group_flags**\ (\ call_flags\: :ref:`int<class_int>`, group\: :ref:`StringName<class_StringName>`, property\: :ref:`String<class_String>`, value\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_SceneTree_method_set_group_flags>`
  459. Sets the given ``property`` to ``value`` on all nodes inside this tree added to the given ``group``. Nodes that do not have the ``property`` are ignored. Use ``call_flags`` to customize this method's behavior (see :ref:`GroupCallFlags<enum_SceneTree_GroupCallFlags>`).
  460. \ **Note:** In C#, ``property`` must be in snake_case when referring to built-in Godot properties. Prefer using the names exposed in the ``PropertyName`` class to avoid allocating a new :ref:`StringName<class_StringName>` on each call.
  461. .. rst-class:: classref-item-separator
  462. ----
  463. .. _class_SceneTree_method_set_multiplayer:
  464. .. rst-class:: classref-method
  465. |void| **set_multiplayer**\ (\ multiplayer\: :ref:`MultiplayerAPI<class_MultiplayerAPI>`, root_path\: :ref:`NodePath<class_NodePath>` = NodePath("")\ ) :ref:`🔗<class_SceneTree_method_set_multiplayer>`
  466. Sets a custom :ref:`MultiplayerAPI<class_MultiplayerAPI>` with the given ``root_path`` (controlling also the relative subpaths), or override the default one if ``root_path`` is empty.
  467. \ **Note:** No :ref:`MultiplayerAPI<class_MultiplayerAPI>` must be configured for the subpath containing ``root_path``, nested custom multiplayers are not allowed. I.e. if one is configured for ``"/root/Foo"`` setting one for ``"/root/Foo/Bar"`` will cause an error.
  468. .. rst-class:: classref-item-separator
  469. ----
  470. .. _class_SceneTree_method_unload_current_scene:
  471. .. rst-class:: classref-method
  472. |void| **unload_current_scene**\ (\ ) :ref:`🔗<class_SceneTree_method_unload_current_scene>`
  473. If a current scene is loaded, calling this method will unload it.
  474. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  475. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  476. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  477. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  478. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  479. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  480. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  481. .. |void| replace:: :abbr:`void (No return value.)`