class_gpuparticles3d.rst 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916
  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/GPUParticles3D.xml.
  6. .. _class_GPUParticles3D:
  7. GPUParticles3D
  8. ==============
  9. **Inherits:** :ref:`GeometryInstance3D<class_GeometryInstance3D>` **<** :ref:`VisualInstance3D<class_VisualInstance3D>` **<** :ref:`Node3D<class_Node3D>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A 3D particle emitter.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 3D particle node used to create a variety of particle systems and effects. **GPUParticles3D** features an emitter that generates some number of particles at a given rate.
  15. Use :ref:`process_material<class_GPUParticles3D_property_process_material>` to add a :ref:`ParticleProcessMaterial<class_ParticleProcessMaterial>` to configure particle appearance and behavior. Alternatively, you can add a :ref:`ShaderMaterial<class_ShaderMaterial>` which will be applied to all particles.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Particle systems (3D) <../tutorials/3d/particles/index>`
  20. - :doc:`Controlling thousands of fish with Particles <../tutorials/performance/vertex_animation/controlling_thousands_of_fish>`
  21. - `Third Person Shooter (TPS) Demo <https://godotengine.org/asset-library/asset/2710>`__
  22. .. rst-class:: classref-reftable-group
  23. Properties
  24. ----------
  25. .. table::
  26. :widths: auto
  27. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  28. | :ref:`int<class_int>` | :ref:`amount<class_GPUParticles3D_property_amount>` | ``8`` |
  29. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  30. | :ref:`float<class_float>` | :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` | ``1.0`` |
  31. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  32. | :ref:`float<class_float>` | :ref:`collision_base_size<class_GPUParticles3D_property_collision_base_size>` | ``0.01`` |
  33. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  34. | :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` | :ref:`draw_order<class_GPUParticles3D_property_draw_order>` | ``0`` |
  35. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  36. | :ref:`Mesh<class_Mesh>` | :ref:`draw_pass_1<class_GPUParticles3D_property_draw_pass_1>` | |
  37. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  38. | :ref:`Mesh<class_Mesh>` | :ref:`draw_pass_2<class_GPUParticles3D_property_draw_pass_2>` | |
  39. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  40. | :ref:`Mesh<class_Mesh>` | :ref:`draw_pass_3<class_GPUParticles3D_property_draw_pass_3>` | |
  41. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  42. | :ref:`Mesh<class_Mesh>` | :ref:`draw_pass_4<class_GPUParticles3D_property_draw_pass_4>` | |
  43. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  44. | :ref:`int<class_int>` | :ref:`draw_passes<class_GPUParticles3D_property_draw_passes>` | ``1`` |
  45. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  46. | :ref:`Skin<class_Skin>` | :ref:`draw_skin<class_GPUParticles3D_property_draw_skin>` | |
  47. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  48. | :ref:`bool<class_bool>` | :ref:`emitting<class_GPUParticles3D_property_emitting>` | ``true`` |
  49. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  50. | :ref:`float<class_float>` | :ref:`explosiveness<class_GPUParticles3D_property_explosiveness>` | ``0.0`` |
  51. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  52. | :ref:`int<class_int>` | :ref:`fixed_fps<class_GPUParticles3D_property_fixed_fps>` | ``30`` |
  53. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  54. | :ref:`bool<class_bool>` | :ref:`fract_delta<class_GPUParticles3D_property_fract_delta>` | ``true`` |
  55. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  56. | :ref:`float<class_float>` | :ref:`interp_to_end<class_GPUParticles3D_property_interp_to_end>` | ``0.0`` |
  57. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  58. | :ref:`bool<class_bool>` | :ref:`interpolate<class_GPUParticles3D_property_interpolate>` | ``true`` |
  59. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  60. | :ref:`float<class_float>` | :ref:`lifetime<class_GPUParticles3D_property_lifetime>` | ``1.0`` |
  61. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  62. | :ref:`bool<class_bool>` | :ref:`local_coords<class_GPUParticles3D_property_local_coords>` | ``false`` |
  63. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  64. | :ref:`bool<class_bool>` | :ref:`one_shot<class_GPUParticles3D_property_one_shot>` | ``false`` |
  65. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  66. | :ref:`float<class_float>` | :ref:`preprocess<class_GPUParticles3D_property_preprocess>` | ``0.0`` |
  67. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  68. | :ref:`Material<class_Material>` | :ref:`process_material<class_GPUParticles3D_property_process_material>` | |
  69. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  70. | :ref:`float<class_float>` | :ref:`randomness<class_GPUParticles3D_property_randomness>` | ``0.0`` |
  71. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  72. | :ref:`float<class_float>` | :ref:`speed_scale<class_GPUParticles3D_property_speed_scale>` | ``1.0`` |
  73. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  74. | :ref:`NodePath<class_NodePath>` | :ref:`sub_emitter<class_GPUParticles3D_property_sub_emitter>` | ``NodePath("")`` |
  75. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  76. | :ref:`bool<class_bool>` | :ref:`trail_enabled<class_GPUParticles3D_property_trail_enabled>` | ``false`` |
  77. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  78. | :ref:`float<class_float>` | :ref:`trail_lifetime<class_GPUParticles3D_property_trail_lifetime>` | ``0.3`` |
  79. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  80. | :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` | :ref:`transform_align<class_GPUParticles3D_property_transform_align>` | ``0`` |
  81. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  82. | :ref:`AABB<class_AABB>` | :ref:`visibility_aabb<class_GPUParticles3D_property_visibility_aabb>` | ``AABB(-4, -4, -4, 8, 8, 8)`` |
  83. +-----------------------------------------------------------+-------------------------------------------------------------------------------+-------------------------------+
  84. .. rst-class:: classref-reftable-group
  85. Methods
  86. -------
  87. .. table::
  88. :widths: auto
  89. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  90. | :ref:`AABB<class_AABB>` | :ref:`capture_aabb<class_GPUParticles3D_method_capture_aabb>`\ (\ ) |const| |
  91. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  92. | |void| | :ref:`convert_from_particles<class_GPUParticles3D_method_convert_from_particles>`\ (\ particles\: :ref:`Node<class_Node>`\ ) |
  93. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  94. | |void| | :ref:`emit_particle<class_GPUParticles3D_method_emit_particle>`\ (\ xform\: :ref:`Transform3D<class_Transform3D>`, velocity\: :ref:`Vector3<class_Vector3>`, color\: :ref:`Color<class_Color>`, custom\: :ref:`Color<class_Color>`, flags\: :ref:`int<class_int>`\ ) |
  95. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  96. | :ref:`Mesh<class_Mesh>` | :ref:`get_draw_pass_mesh<class_GPUParticles3D_method_get_draw_pass_mesh>`\ (\ pass\: :ref:`int<class_int>`\ ) |const| |
  97. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  98. | |void| | :ref:`restart<class_GPUParticles3D_method_restart>`\ (\ ) |
  99. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  100. | |void| | :ref:`set_draw_pass_mesh<class_GPUParticles3D_method_set_draw_pass_mesh>`\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ ) |
  101. +-------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  102. .. rst-class:: classref-section-separator
  103. ----
  104. .. rst-class:: classref-descriptions-group
  105. Signals
  106. -------
  107. .. _class_GPUParticles3D_signal_finished:
  108. .. rst-class:: classref-signal
  109. **finished**\ (\ ) :ref:`๐Ÿ”—<class_GPUParticles3D_signal_finished>`
  110. Emitted when all active particles have finished processing. To immediately restart the emission cycle, call :ref:`restart<class_GPUParticles3D_method_restart>`.
  111. This signal is never emitted when :ref:`one_shot<class_GPUParticles3D_property_one_shot>` is disabled, as particles will be emitted and processed continuously.
  112. \ **Note:** For :ref:`one_shot<class_GPUParticles3D_property_one_shot>` emitters, due to the particles being computed on the GPU, there may be a short period after receiving the signal during which setting :ref:`emitting<class_GPUParticles3D_property_emitting>` to ``true`` will not restart the emission cycle. This delay is avoided by instead calling :ref:`restart<class_GPUParticles3D_method_restart>`.
  113. .. rst-class:: classref-section-separator
  114. ----
  115. .. rst-class:: classref-descriptions-group
  116. Enumerations
  117. ------------
  118. .. _enum_GPUParticles3D_DrawOrder:
  119. .. rst-class:: classref-enumeration
  120. enum **DrawOrder**: :ref:`๐Ÿ”—<enum_GPUParticles3D_DrawOrder>`
  121. .. _class_GPUParticles3D_constant_DRAW_ORDER_INDEX:
  122. .. rst-class:: classref-enumeration-constant
  123. :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **DRAW_ORDER_INDEX** = ``0``
  124. Particles are drawn in the order emitted.
  125. .. _class_GPUParticles3D_constant_DRAW_ORDER_LIFETIME:
  126. .. rst-class:: classref-enumeration-constant
  127. :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **DRAW_ORDER_LIFETIME** = ``1``
  128. Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.
  129. .. _class_GPUParticles3D_constant_DRAW_ORDER_REVERSE_LIFETIME:
  130. .. rst-class:: classref-enumeration-constant
  131. :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **DRAW_ORDER_REVERSE_LIFETIME** = ``2``
  132. Particles are drawn in reverse order of remaining lifetime. In other words, the particle with the lowest lifetime is drawn at the front.
  133. .. _class_GPUParticles3D_constant_DRAW_ORDER_VIEW_DEPTH:
  134. .. rst-class:: classref-enumeration-constant
  135. :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **DRAW_ORDER_VIEW_DEPTH** = ``3``
  136. Particles are drawn in order of depth.
  137. .. rst-class:: classref-item-separator
  138. ----
  139. .. _enum_GPUParticles3D_EmitFlags:
  140. .. rst-class:: classref-enumeration
  141. enum **EmitFlags**: :ref:`๐Ÿ”—<enum_GPUParticles3D_EmitFlags>`
  142. .. _class_GPUParticles3D_constant_EMIT_FLAG_POSITION:
  143. .. rst-class:: classref-enumeration-constant
  144. :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>` **EMIT_FLAG_POSITION** = ``1``
  145. Particle starts at the specified position.
  146. .. _class_GPUParticles3D_constant_EMIT_FLAG_ROTATION_SCALE:
  147. .. rst-class:: classref-enumeration-constant
  148. :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>` **EMIT_FLAG_ROTATION_SCALE** = ``2``
  149. Particle starts with specified rotation and scale.
  150. .. _class_GPUParticles3D_constant_EMIT_FLAG_VELOCITY:
  151. .. rst-class:: classref-enumeration-constant
  152. :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>` **EMIT_FLAG_VELOCITY** = ``4``
  153. Particle starts with the specified velocity vector, which defines the emission direction and speed.
  154. .. _class_GPUParticles3D_constant_EMIT_FLAG_COLOR:
  155. .. rst-class:: classref-enumeration-constant
  156. :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>` **EMIT_FLAG_COLOR** = ``8``
  157. Particle starts with specified color.
  158. .. _class_GPUParticles3D_constant_EMIT_FLAG_CUSTOM:
  159. .. rst-class:: classref-enumeration-constant
  160. :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>` **EMIT_FLAG_CUSTOM** = ``16``
  161. Particle starts with specified ``CUSTOM`` data.
  162. .. rst-class:: classref-item-separator
  163. ----
  164. .. _enum_GPUParticles3D_TransformAlign:
  165. .. rst-class:: classref-enumeration
  166. enum **TransformAlign**: :ref:`๐Ÿ”—<enum_GPUParticles3D_TransformAlign>`
  167. .. _class_GPUParticles3D_constant_TRANSFORM_ALIGN_DISABLED:
  168. .. rst-class:: classref-enumeration-constant
  169. :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **TRANSFORM_ALIGN_DISABLED** = ``0``
  170. .. container:: contribute
  171. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  172. .. _class_GPUParticles3D_constant_TRANSFORM_ALIGN_Z_BILLBOARD:
  173. .. rst-class:: classref-enumeration-constant
  174. :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **TRANSFORM_ALIGN_Z_BILLBOARD** = ``1``
  175. .. container:: contribute
  176. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  177. .. _class_GPUParticles3D_constant_TRANSFORM_ALIGN_Y_TO_VELOCITY:
  178. .. rst-class:: classref-enumeration-constant
  179. :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **TRANSFORM_ALIGN_Y_TO_VELOCITY** = ``2``
  180. .. container:: contribute
  181. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  182. .. _class_GPUParticles3D_constant_TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY:
  183. .. rst-class:: classref-enumeration-constant
  184. :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **TRANSFORM_ALIGN_Z_BILLBOARD_Y_TO_VELOCITY** = ``3``
  185. .. container:: contribute
  186. There is currently no description for this enum. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  187. .. rst-class:: classref-section-separator
  188. ----
  189. .. rst-class:: classref-descriptions-group
  190. Constants
  191. ---------
  192. .. _class_GPUParticles3D_constant_MAX_DRAW_PASSES:
  193. .. rst-class:: classref-constant
  194. **MAX_DRAW_PASSES** = ``4`` :ref:`๐Ÿ”—<class_GPUParticles3D_constant_MAX_DRAW_PASSES>`
  195. Maximum number of draw passes supported.
  196. .. rst-class:: classref-section-separator
  197. ----
  198. .. rst-class:: classref-descriptions-group
  199. Property Descriptions
  200. ---------------------
  201. .. _class_GPUParticles3D_property_amount:
  202. .. rst-class:: classref-property
  203. :ref:`int<class_int>` **amount** = ``8`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_amount>`
  204. .. rst-class:: classref-property-setget
  205. - |void| **set_amount**\ (\ value\: :ref:`int<class_int>`\ )
  206. - :ref:`int<class_int>` **get_amount**\ (\ )
  207. The number of particles to emit in one emission cycle. The effective emission rate is ``(amount * amount_ratio) / lifetime`` particles per second. Higher values will increase GPU requirements, even if not all particles are visible at a given time or if :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` is decreased.
  208. \ **Note:** Changing this value will cause the particle system to restart. To avoid this, change :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` instead.
  209. .. rst-class:: classref-item-separator
  210. ----
  211. .. _class_GPUParticles3D_property_amount_ratio:
  212. .. rst-class:: classref-property
  213. :ref:`float<class_float>` **amount_ratio** = ``1.0`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_amount_ratio>`
  214. .. rst-class:: classref-property-setget
  215. - |void| **set_amount_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  216. - :ref:`float<class_float>` **get_amount_ratio**\ (\ )
  217. The ratio of particles that should actually be emitted. If set to a value lower than ``1.0``, this will set the amount of emitted particles throughout the lifetime to ``amount * amount_ratio``. Unlike changing :ref:`amount<class_GPUParticles3D_property_amount>`, changing :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` while emitting does not affect already-emitted particles and doesn't cause the particle system to restart. :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` can be used to create effects that make the number of emitted particles vary over time.
  218. \ **Note:** Reducing the :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` has no performance benefit, since resources need to be allocated and processed for the total :ref:`amount<class_GPUParticles3D_property_amount>` of particles regardless of the :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>`. If you don't intend to change the number of particles emitted while the particles are emitting, make sure :ref:`amount_ratio<class_GPUParticles3D_property_amount_ratio>` is set to ``1`` and change :ref:`amount<class_GPUParticles3D_property_amount>` to your liking instead.
  219. .. rst-class:: classref-item-separator
  220. ----
  221. .. _class_GPUParticles3D_property_collision_base_size:
  222. .. rst-class:: classref-property
  223. :ref:`float<class_float>` **collision_base_size** = ``0.01`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_collision_base_size>`
  224. .. rst-class:: classref-property-setget
  225. - |void| **set_collision_base_size**\ (\ value\: :ref:`float<class_float>`\ )
  226. - :ref:`float<class_float>` **get_collision_base_size**\ (\ )
  227. The base diameter for particle collision in meters. If particles appear to sink into the ground when colliding, increase this value. If particles appear to float when colliding, decrease this value. Only effective if :ref:`ParticleProcessMaterial.collision_mode<class_ParticleProcessMaterial_property_collision_mode>` is :ref:`ParticleProcessMaterial.COLLISION_RIGID<class_ParticleProcessMaterial_constant_COLLISION_RIGID>` or :ref:`ParticleProcessMaterial.COLLISION_HIDE_ON_CONTACT<class_ParticleProcessMaterial_constant_COLLISION_HIDE_ON_CONTACT>`.
  228. \ **Note:** Particles always have a spherical collision shape.
  229. .. rst-class:: classref-item-separator
  230. ----
  231. .. _class_GPUParticles3D_property_draw_order:
  232. .. rst-class:: classref-property
  233. :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **draw_order** = ``0`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_draw_order>`
  234. .. rst-class:: classref-property-setget
  235. - |void| **set_draw_order**\ (\ value\: :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>`\ )
  236. - :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` **get_draw_order**\ (\ )
  237. Particle draw order. Uses :ref:`DrawOrder<enum_GPUParticles3D_DrawOrder>` values.
  238. \ **Note:** :ref:`DRAW_ORDER_INDEX<class_GPUParticles3D_constant_DRAW_ORDER_INDEX>` is the only option that supports motion vectors for effects like TAA. It is suggested to use this draw order if the particles are opaque to fix ghosting artifacts.
  239. .. rst-class:: classref-item-separator
  240. ----
  241. .. _class_GPUParticles3D_property_draw_pass_1:
  242. .. rst-class:: classref-property
  243. :ref:`Mesh<class_Mesh>` **draw_pass_1** :ref:`๐Ÿ”—<class_GPUParticles3D_property_draw_pass_1>`
  244. .. rst-class:: classref-property-setget
  245. - |void| **set_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ )
  246. - :ref:`Mesh<class_Mesh>` **get_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`\ ) |const|
  247. :ref:`Mesh<class_Mesh>` that is drawn for the first draw pass.
  248. .. rst-class:: classref-item-separator
  249. ----
  250. .. _class_GPUParticles3D_property_draw_pass_2:
  251. .. rst-class:: classref-property
  252. :ref:`Mesh<class_Mesh>` **draw_pass_2** :ref:`๐Ÿ”—<class_GPUParticles3D_property_draw_pass_2>`
  253. .. rst-class:: classref-property-setget
  254. - |void| **set_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ )
  255. - :ref:`Mesh<class_Mesh>` **get_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`\ ) |const|
  256. :ref:`Mesh<class_Mesh>` that is drawn for the second draw pass.
  257. .. rst-class:: classref-item-separator
  258. ----
  259. .. _class_GPUParticles3D_property_draw_pass_3:
  260. .. rst-class:: classref-property
  261. :ref:`Mesh<class_Mesh>` **draw_pass_3** :ref:`๐Ÿ”—<class_GPUParticles3D_property_draw_pass_3>`
  262. .. rst-class:: classref-property-setget
  263. - |void| **set_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ )
  264. - :ref:`Mesh<class_Mesh>` **get_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`\ ) |const|
  265. :ref:`Mesh<class_Mesh>` that is drawn for the third draw pass.
  266. .. rst-class:: classref-item-separator
  267. ----
  268. .. _class_GPUParticles3D_property_draw_pass_4:
  269. .. rst-class:: classref-property
  270. :ref:`Mesh<class_Mesh>` **draw_pass_4** :ref:`๐Ÿ”—<class_GPUParticles3D_property_draw_pass_4>`
  271. .. rst-class:: classref-property-setget
  272. - |void| **set_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ )
  273. - :ref:`Mesh<class_Mesh>` **get_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`\ ) |const|
  274. :ref:`Mesh<class_Mesh>` that is drawn for the fourth draw pass.
  275. .. rst-class:: classref-item-separator
  276. ----
  277. .. _class_GPUParticles3D_property_draw_passes:
  278. .. rst-class:: classref-property
  279. :ref:`int<class_int>` **draw_passes** = ``1`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_draw_passes>`
  280. .. rst-class:: classref-property-setget
  281. - |void| **set_draw_passes**\ (\ value\: :ref:`int<class_int>`\ )
  282. - :ref:`int<class_int>` **get_draw_passes**\ (\ )
  283. The number of draw passes when rendering particles.
  284. .. rst-class:: classref-item-separator
  285. ----
  286. .. _class_GPUParticles3D_property_draw_skin:
  287. .. rst-class:: classref-property
  288. :ref:`Skin<class_Skin>` **draw_skin** :ref:`๐Ÿ”—<class_GPUParticles3D_property_draw_skin>`
  289. .. rst-class:: classref-property-setget
  290. - |void| **set_skin**\ (\ value\: :ref:`Skin<class_Skin>`\ )
  291. - :ref:`Skin<class_Skin>` **get_skin**\ (\ )
  292. .. container:: contribute
  293. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  294. .. rst-class:: classref-item-separator
  295. ----
  296. .. _class_GPUParticles3D_property_emitting:
  297. .. rst-class:: classref-property
  298. :ref:`bool<class_bool>` **emitting** = ``true`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_emitting>`
  299. .. rst-class:: classref-property-setget
  300. - |void| **set_emitting**\ (\ value\: :ref:`bool<class_bool>`\ )
  301. - :ref:`bool<class_bool>` **is_emitting**\ (\ )
  302. If ``true``, particles are being emitted. :ref:`emitting<class_GPUParticles3D_property_emitting>` can be used to start and stop particles from emitting. However, if :ref:`one_shot<class_GPUParticles3D_property_one_shot>` is ``true`` setting :ref:`emitting<class_GPUParticles3D_property_emitting>` to ``true`` will not restart the emission cycle unless all active particles have finished processing. Use the :ref:`finished<class_GPUParticles3D_signal_finished>` signal to be notified once all active particles finish processing.
  303. \ **Note:** For :ref:`one_shot<class_GPUParticles3D_property_one_shot>` emitters, due to the particles being computed on the GPU, there may be a short period after receiving the :ref:`finished<class_GPUParticles3D_signal_finished>` signal during which setting this to ``true`` will not restart the emission cycle.
  304. \ **Tip:** If your :ref:`one_shot<class_GPUParticles3D_property_one_shot>` emitter needs to immediately restart emitting particles once :ref:`finished<class_GPUParticles3D_signal_finished>` signal is received, consider calling :ref:`restart<class_GPUParticles3D_method_restart>` instead of setting :ref:`emitting<class_GPUParticles3D_property_emitting>`.
  305. .. rst-class:: classref-item-separator
  306. ----
  307. .. _class_GPUParticles3D_property_explosiveness:
  308. .. rst-class:: classref-property
  309. :ref:`float<class_float>` **explosiveness** = ``0.0`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_explosiveness>`
  310. .. rst-class:: classref-property-setget
  311. - |void| **set_explosiveness_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  312. - :ref:`float<class_float>` **get_explosiveness_ratio**\ (\ )
  313. Time ratio between each emission. If ``0``, particles are emitted continuously. If ``1``, all particles are emitted simultaneously.
  314. .. rst-class:: classref-item-separator
  315. ----
  316. .. _class_GPUParticles3D_property_fixed_fps:
  317. .. rst-class:: classref-property
  318. :ref:`int<class_int>` **fixed_fps** = ``30`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_fixed_fps>`
  319. .. rst-class:: classref-property-setget
  320. - |void| **set_fixed_fps**\ (\ value\: :ref:`int<class_int>`\ )
  321. - :ref:`int<class_int>` **get_fixed_fps**\ (\ )
  322. The particle system's frame rate is fixed to a value. For example, changing the value to 2 will make the particles render at 2 frames per second. Note this does not slow down the simulation of the particle system itself.
  323. .. rst-class:: classref-item-separator
  324. ----
  325. .. _class_GPUParticles3D_property_fract_delta:
  326. .. rst-class:: classref-property
  327. :ref:`bool<class_bool>` **fract_delta** = ``true`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_fract_delta>`
  328. .. rst-class:: classref-property-setget
  329. - |void| **set_fractional_delta**\ (\ value\: :ref:`bool<class_bool>`\ )
  330. - :ref:`bool<class_bool>` **get_fractional_delta**\ (\ )
  331. If ``true``, results in fractional delta calculation which has a smoother particles display effect.
  332. .. rst-class:: classref-item-separator
  333. ----
  334. .. _class_GPUParticles3D_property_interp_to_end:
  335. .. rst-class:: classref-property
  336. :ref:`float<class_float>` **interp_to_end** = ``0.0`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_interp_to_end>`
  337. .. rst-class:: classref-property-setget
  338. - |void| **set_interp_to_end**\ (\ value\: :ref:`float<class_float>`\ )
  339. - :ref:`float<class_float>` **get_interp_to_end**\ (\ )
  340. Causes all the particles in this node to interpolate towards the end of their lifetime.
  341. \ **Note:** This only works when used with a :ref:`ParticleProcessMaterial<class_ParticleProcessMaterial>`. It needs to be manually implemented for custom process shaders.
  342. .. rst-class:: classref-item-separator
  343. ----
  344. .. _class_GPUParticles3D_property_interpolate:
  345. .. rst-class:: classref-property
  346. :ref:`bool<class_bool>` **interpolate** = ``true`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_interpolate>`
  347. .. rst-class:: classref-property-setget
  348. - |void| **set_interpolate**\ (\ value\: :ref:`bool<class_bool>`\ )
  349. - :ref:`bool<class_bool>` **get_interpolate**\ (\ )
  350. Enables particle interpolation, which makes the particle movement smoother when their :ref:`fixed_fps<class_GPUParticles3D_property_fixed_fps>` is lower than the screen refresh rate.
  351. .. rst-class:: classref-item-separator
  352. ----
  353. .. _class_GPUParticles3D_property_lifetime:
  354. .. rst-class:: classref-property
  355. :ref:`float<class_float>` **lifetime** = ``1.0`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_lifetime>`
  356. .. rst-class:: classref-property-setget
  357. - |void| **set_lifetime**\ (\ value\: :ref:`float<class_float>`\ )
  358. - :ref:`float<class_float>` **get_lifetime**\ (\ )
  359. The amount of time each particle will exist (in seconds). The effective emission rate is ``(amount * amount_ratio) / lifetime`` particles per second.
  360. .. rst-class:: classref-item-separator
  361. ----
  362. .. _class_GPUParticles3D_property_local_coords:
  363. .. rst-class:: classref-property
  364. :ref:`bool<class_bool>` **local_coords** = ``false`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_local_coords>`
  365. .. rst-class:: classref-property-setget
  366. - |void| **set_use_local_coordinates**\ (\ value\: :ref:`bool<class_bool>`\ )
  367. - :ref:`bool<class_bool>` **get_use_local_coordinates**\ (\ )
  368. If ``true``, particles use the parent node's coordinate space (known as local coordinates). This will cause particles to move and rotate along the **GPUParticles3D** node (and its parents) when it is moved or rotated. If ``false``, particles use global coordinates; they will not move or rotate along the **GPUParticles3D** node (and its parents) when it is moved or rotated.
  369. .. rst-class:: classref-item-separator
  370. ----
  371. .. _class_GPUParticles3D_property_one_shot:
  372. .. rst-class:: classref-property
  373. :ref:`bool<class_bool>` **one_shot** = ``false`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_one_shot>`
  374. .. rst-class:: classref-property-setget
  375. - |void| **set_one_shot**\ (\ value\: :ref:`bool<class_bool>`\ )
  376. - :ref:`bool<class_bool>` **get_one_shot**\ (\ )
  377. If ``true``, only the number of particles equal to :ref:`amount<class_GPUParticles3D_property_amount>` will be emitted.
  378. .. rst-class:: classref-item-separator
  379. ----
  380. .. _class_GPUParticles3D_property_preprocess:
  381. .. rst-class:: classref-property
  382. :ref:`float<class_float>` **preprocess** = ``0.0`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_preprocess>`
  383. .. rst-class:: classref-property-setget
  384. - |void| **set_pre_process_time**\ (\ value\: :ref:`float<class_float>`\ )
  385. - :ref:`float<class_float>` **get_pre_process_time**\ (\ )
  386. Amount of time to preprocess the particles before animation starts. Lets you start the animation some time after particles have started emitting.
  387. .. rst-class:: classref-item-separator
  388. ----
  389. .. _class_GPUParticles3D_property_process_material:
  390. .. rst-class:: classref-property
  391. :ref:`Material<class_Material>` **process_material** :ref:`๐Ÿ”—<class_GPUParticles3D_property_process_material>`
  392. .. rst-class:: classref-property-setget
  393. - |void| **set_process_material**\ (\ value\: :ref:`Material<class_Material>`\ )
  394. - :ref:`Material<class_Material>` **get_process_material**\ (\ )
  395. :ref:`Material<class_Material>` for processing particles. Can be a :ref:`ParticleProcessMaterial<class_ParticleProcessMaterial>` or a :ref:`ShaderMaterial<class_ShaderMaterial>`.
  396. .. rst-class:: classref-item-separator
  397. ----
  398. .. _class_GPUParticles3D_property_randomness:
  399. .. rst-class:: classref-property
  400. :ref:`float<class_float>` **randomness** = ``0.0`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_randomness>`
  401. .. rst-class:: classref-property-setget
  402. - |void| **set_randomness_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  403. - :ref:`float<class_float>` **get_randomness_ratio**\ (\ )
  404. Emission randomness ratio.
  405. .. rst-class:: classref-item-separator
  406. ----
  407. .. _class_GPUParticles3D_property_speed_scale:
  408. .. rst-class:: classref-property
  409. :ref:`float<class_float>` **speed_scale** = ``1.0`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_speed_scale>`
  410. .. rst-class:: classref-property-setget
  411. - |void| **set_speed_scale**\ (\ value\: :ref:`float<class_float>`\ )
  412. - :ref:`float<class_float>` **get_speed_scale**\ (\ )
  413. Speed scaling ratio. A value of ``0`` can be used to pause the particles.
  414. .. rst-class:: classref-item-separator
  415. ----
  416. .. _class_GPUParticles3D_property_sub_emitter:
  417. .. rst-class:: classref-property
  418. :ref:`NodePath<class_NodePath>` **sub_emitter** = ``NodePath("")`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_sub_emitter>`
  419. .. rst-class:: classref-property-setget
  420. - |void| **set_sub_emitter**\ (\ value\: :ref:`NodePath<class_NodePath>`\ )
  421. - :ref:`NodePath<class_NodePath>` **get_sub_emitter**\ (\ )
  422. Path to another **GPUParticles3D** node that will be used as a subemitter (see :ref:`ParticleProcessMaterial.sub_emitter_mode<class_ParticleProcessMaterial_property_sub_emitter_mode>`). Subemitters can be used to achieve effects such as fireworks, sparks on collision, bubbles popping into water drops, and more.
  423. \ **Note:** When :ref:`sub_emitter<class_GPUParticles3D_property_sub_emitter>` is set, the target **GPUParticles3D** node will no longer emit particles on its own.
  424. .. rst-class:: classref-item-separator
  425. ----
  426. .. _class_GPUParticles3D_property_trail_enabled:
  427. .. rst-class:: classref-property
  428. :ref:`bool<class_bool>` **trail_enabled** = ``false`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_trail_enabled>`
  429. .. rst-class:: classref-property-setget
  430. - |void| **set_trail_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  431. - :ref:`bool<class_bool>` **is_trail_enabled**\ (\ )
  432. If ``true``, enables particle trails using a mesh skinning system. Designed to work with :ref:`RibbonTrailMesh<class_RibbonTrailMesh>` and :ref:`TubeTrailMesh<class_TubeTrailMesh>`.
  433. \ **Note:** :ref:`BaseMaterial3D.use_particle_trails<class_BaseMaterial3D_property_use_particle_trails>` must also be enabled on the particle mesh's material. Otherwise, setting :ref:`trail_enabled<class_GPUParticles3D_property_trail_enabled>` to ``true`` will have no effect.
  434. \ **Note:** Unlike :ref:`GPUParticles2D<class_GPUParticles2D>`, the number of trail sections and subdivisions is set in the :ref:`RibbonTrailMesh<class_RibbonTrailMesh>` or the :ref:`TubeTrailMesh<class_TubeTrailMesh>`'s properties.
  435. .. rst-class:: classref-item-separator
  436. ----
  437. .. _class_GPUParticles3D_property_trail_lifetime:
  438. .. rst-class:: classref-property
  439. :ref:`float<class_float>` **trail_lifetime** = ``0.3`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_trail_lifetime>`
  440. .. rst-class:: classref-property-setget
  441. - |void| **set_trail_lifetime**\ (\ value\: :ref:`float<class_float>`\ )
  442. - :ref:`float<class_float>` **get_trail_lifetime**\ (\ )
  443. The amount of time the particle's trail should represent (in seconds). Only effective if :ref:`trail_enabled<class_GPUParticles3D_property_trail_enabled>` is ``true``.
  444. .. rst-class:: classref-item-separator
  445. ----
  446. .. _class_GPUParticles3D_property_transform_align:
  447. .. rst-class:: classref-property
  448. :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **transform_align** = ``0`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_transform_align>`
  449. .. rst-class:: classref-property-setget
  450. - |void| **set_transform_align**\ (\ value\: :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>`\ )
  451. - :ref:`TransformAlign<enum_GPUParticles3D_TransformAlign>` **get_transform_align**\ (\ )
  452. .. container:: contribute
  453. There is currently no description for this property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
  454. .. rst-class:: classref-item-separator
  455. ----
  456. .. _class_GPUParticles3D_property_visibility_aabb:
  457. .. rst-class:: classref-property
  458. :ref:`AABB<class_AABB>` **visibility_aabb** = ``AABB(-4, -4, -4, 8, 8, 8)`` :ref:`๐Ÿ”—<class_GPUParticles3D_property_visibility_aabb>`
  459. .. rst-class:: classref-property-setget
  460. - |void| **set_visibility_aabb**\ (\ value\: :ref:`AABB<class_AABB>`\ )
  461. - :ref:`AABB<class_AABB>` **get_visibility_aabb**\ (\ )
  462. The :ref:`AABB<class_AABB>` that determines the node's region which needs to be visible on screen for the particle system to be active. :ref:`GeometryInstance3D.extra_cull_margin<class_GeometryInstance3D_property_extra_cull_margin>` is added on each of the AABB's axes. Particle collisions and attraction will only occur within this area.
  463. Grow the box if particles suddenly appear/disappear when the node enters/exits the screen. The :ref:`AABB<class_AABB>` can be grown via code or with the **Particles โ†’ Generate AABB** editor tool.
  464. \ **Note:** :ref:`visibility_aabb<class_GPUParticles3D_property_visibility_aabb>` is overridden by :ref:`GeometryInstance3D.custom_aabb<class_GeometryInstance3D_property_custom_aabb>` if that property is set to a non-default value.
  465. .. rst-class:: classref-section-separator
  466. ----
  467. .. rst-class:: classref-descriptions-group
  468. Method Descriptions
  469. -------------------
  470. .. _class_GPUParticles3D_method_capture_aabb:
  471. .. rst-class:: classref-method
  472. :ref:`AABB<class_AABB>` **capture_aabb**\ (\ ) |const| :ref:`๐Ÿ”—<class_GPUParticles3D_method_capture_aabb>`
  473. Returns the axis-aligned bounding box that contains all the particles that are active in the current frame.
  474. .. rst-class:: classref-item-separator
  475. ----
  476. .. _class_GPUParticles3D_method_convert_from_particles:
  477. .. rst-class:: classref-method
  478. |void| **convert_from_particles**\ (\ particles\: :ref:`Node<class_Node>`\ ) :ref:`๐Ÿ”—<class_GPUParticles3D_method_convert_from_particles>`
  479. Sets this node's properties to match a given :ref:`CPUParticles3D<class_CPUParticles3D>` node.
  480. .. rst-class:: classref-item-separator
  481. ----
  482. .. _class_GPUParticles3D_method_emit_particle:
  483. .. rst-class:: classref-method
  484. |void| **emit_particle**\ (\ xform\: :ref:`Transform3D<class_Transform3D>`, velocity\: :ref:`Vector3<class_Vector3>`, color\: :ref:`Color<class_Color>`, custom\: :ref:`Color<class_Color>`, flags\: :ref:`int<class_int>`\ ) :ref:`๐Ÿ”—<class_GPUParticles3D_method_emit_particle>`
  485. Emits a single particle. Whether ``xform``, ``velocity``, ``color`` and ``custom`` are applied depends on the value of ``flags``. See :ref:`EmitFlags<enum_GPUParticles3D_EmitFlags>`.
  486. The default ParticleProcessMaterial will overwrite ``color`` and use the contents of ``custom`` as ``(rotation, age, animation, lifetime)``.
  487. .. rst-class:: classref-item-separator
  488. ----
  489. .. _class_GPUParticles3D_method_get_draw_pass_mesh:
  490. .. rst-class:: classref-method
  491. :ref:`Mesh<class_Mesh>` **get_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`\ ) |const| :ref:`๐Ÿ”—<class_GPUParticles3D_method_get_draw_pass_mesh>`
  492. Returns the :ref:`Mesh<class_Mesh>` that is drawn at index ``pass``.
  493. .. rst-class:: classref-item-separator
  494. ----
  495. .. _class_GPUParticles3D_method_restart:
  496. .. rst-class:: classref-method
  497. |void| **restart**\ (\ ) :ref:`๐Ÿ”—<class_GPUParticles3D_method_restart>`
  498. Restarts the particle emission cycle, clearing existing particles. To avoid particles vanishing from the viewport, wait for the :ref:`finished<class_GPUParticles3D_signal_finished>` signal before calling.
  499. \ **Note:** The :ref:`finished<class_GPUParticles3D_signal_finished>` signal is only emitted by :ref:`one_shot<class_GPUParticles3D_property_one_shot>` emitters.
  500. .. rst-class:: classref-item-separator
  501. ----
  502. .. _class_GPUParticles3D_method_set_draw_pass_mesh:
  503. .. rst-class:: classref-method
  504. |void| **set_draw_pass_mesh**\ (\ pass\: :ref:`int<class_int>`, mesh\: :ref:`Mesh<class_Mesh>`\ ) :ref:`๐Ÿ”—<class_GPUParticles3D_method_set_draw_pass_mesh>`
  505. Sets the :ref:`Mesh<class_Mesh>` that is drawn at index ``pass``.
  506. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  507. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  508. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  509. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  510. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  511. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  512. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  513. .. |void| replace:: :abbr:`void (No return value.)`