class_cpuparticles2d.rst 95 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786
  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/CPUParticles2D.xml.
  6. .. _class_CPUParticles2D:
  7. CPUParticles2D
  8. ==============
  9. **Inherits:** :ref:`Node2D<class_Node2D>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  10. A CPU-based 2D particle emitter.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. CPU-based 2D particle node used to create a variety of particle systems and effects.
  15. See also :ref:`GPUParticles2D<class_GPUParticles2D>`, which provides the same functionality with hardware acceleration, but may not run on older devices.
  16. .. rst-class:: classref-introduction-group
  17. Tutorials
  18. ---------
  19. - :doc:`Particle systems (2D) <../tutorials/2d/particle_systems_2d>`
  20. .. rst-class:: classref-reftable-group
  21. Properties
  22. ----------
  23. .. table::
  24. :widths: auto
  25. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  26. | :ref:`int<class_int>` | :ref:`amount<class_CPUParticles2D_property_amount>` | ``8`` |
  27. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  28. | :ref:`Curve<class_Curve>` | :ref:`angle_curve<class_CPUParticles2D_property_angle_curve>` | |
  29. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  30. | :ref:`float<class_float>` | :ref:`angle_max<class_CPUParticles2D_property_angle_max>` | ``0.0`` |
  31. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  32. | :ref:`float<class_float>` | :ref:`angle_min<class_CPUParticles2D_property_angle_min>` | ``0.0`` |
  33. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  34. | :ref:`Curve<class_Curve>` | :ref:`angular_velocity_curve<class_CPUParticles2D_property_angular_velocity_curve>` | |
  35. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  36. | :ref:`float<class_float>` | :ref:`angular_velocity_max<class_CPUParticles2D_property_angular_velocity_max>` | ``0.0`` |
  37. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  38. | :ref:`float<class_float>` | :ref:`angular_velocity_min<class_CPUParticles2D_property_angular_velocity_min>` | ``0.0`` |
  39. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  40. | :ref:`Curve<class_Curve>` | :ref:`anim_offset_curve<class_CPUParticles2D_property_anim_offset_curve>` | |
  41. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  42. | :ref:`float<class_float>` | :ref:`anim_offset_max<class_CPUParticles2D_property_anim_offset_max>` | ``0.0`` |
  43. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  44. | :ref:`float<class_float>` | :ref:`anim_offset_min<class_CPUParticles2D_property_anim_offset_min>` | ``0.0`` |
  45. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  46. | :ref:`Curve<class_Curve>` | :ref:`anim_speed_curve<class_CPUParticles2D_property_anim_speed_curve>` | |
  47. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  48. | :ref:`float<class_float>` | :ref:`anim_speed_max<class_CPUParticles2D_property_anim_speed_max>` | ``0.0`` |
  49. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  50. | :ref:`float<class_float>` | :ref:`anim_speed_min<class_CPUParticles2D_property_anim_speed_min>` | ``0.0`` |
  51. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  52. | :ref:`Color<class_Color>` | :ref:`color<class_CPUParticles2D_property_color>` | ``Color(1, 1, 1, 1)`` |
  53. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  54. | :ref:`Gradient<class_Gradient>` | :ref:`color_initial_ramp<class_CPUParticles2D_property_color_initial_ramp>` | |
  55. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  56. | :ref:`Gradient<class_Gradient>` | :ref:`color_ramp<class_CPUParticles2D_property_color_ramp>` | |
  57. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  58. | :ref:`Curve<class_Curve>` | :ref:`damping_curve<class_CPUParticles2D_property_damping_curve>` | |
  59. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  60. | :ref:`float<class_float>` | :ref:`damping_max<class_CPUParticles2D_property_damping_max>` | ``0.0`` |
  61. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  62. | :ref:`float<class_float>` | :ref:`damping_min<class_CPUParticles2D_property_damping_min>` | ``0.0`` |
  63. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  64. | :ref:`Vector2<class_Vector2>` | :ref:`direction<class_CPUParticles2D_property_direction>` | ``Vector2(1, 0)`` |
  65. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  66. | :ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>` | :ref:`draw_order<class_CPUParticles2D_property_draw_order>` | ``0`` |
  67. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  68. | :ref:`PackedColorArray<class_PackedColorArray>` | :ref:`emission_colors<class_CPUParticles2D_property_emission_colors>` | |
  69. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  70. | :ref:`PackedVector2Array<class_PackedVector2Array>` | :ref:`emission_normals<class_CPUParticles2D_property_emission_normals>` | |
  71. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  72. | :ref:`PackedVector2Array<class_PackedVector2Array>` | :ref:`emission_points<class_CPUParticles2D_property_emission_points>` | |
  73. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  74. | :ref:`Vector2<class_Vector2>` | :ref:`emission_rect_extents<class_CPUParticles2D_property_emission_rect_extents>` | |
  75. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  76. | :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` | :ref:`emission_shape<class_CPUParticles2D_property_emission_shape>` | ``0`` |
  77. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  78. | :ref:`float<class_float>` | :ref:`emission_sphere_radius<class_CPUParticles2D_property_emission_sphere_radius>` | |
  79. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  80. | :ref:`bool<class_bool>` | :ref:`emitting<class_CPUParticles2D_property_emitting>` | ``true`` |
  81. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  82. | :ref:`float<class_float>` | :ref:`explosiveness<class_CPUParticles2D_property_explosiveness>` | ``0.0`` |
  83. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  84. | :ref:`int<class_int>` | :ref:`fixed_fps<class_CPUParticles2D_property_fixed_fps>` | ``0`` |
  85. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  86. | :ref:`bool<class_bool>` | :ref:`fract_delta<class_CPUParticles2D_property_fract_delta>` | ``true`` |
  87. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  88. | :ref:`Vector2<class_Vector2>` | :ref:`gravity<class_CPUParticles2D_property_gravity>` | ``Vector2(0, 980)`` |
  89. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  90. | :ref:`Curve<class_Curve>` | :ref:`hue_variation_curve<class_CPUParticles2D_property_hue_variation_curve>` | |
  91. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  92. | :ref:`float<class_float>` | :ref:`hue_variation_max<class_CPUParticles2D_property_hue_variation_max>` | ``0.0`` |
  93. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  94. | :ref:`float<class_float>` | :ref:`hue_variation_min<class_CPUParticles2D_property_hue_variation_min>` | ``0.0`` |
  95. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  96. | :ref:`float<class_float>` | :ref:`initial_velocity_max<class_CPUParticles2D_property_initial_velocity_max>` | ``0.0`` |
  97. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  98. | :ref:`float<class_float>` | :ref:`initial_velocity_min<class_CPUParticles2D_property_initial_velocity_min>` | ``0.0`` |
  99. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  100. | :ref:`float<class_float>` | :ref:`lifetime<class_CPUParticles2D_property_lifetime>` | ``1.0`` |
  101. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  102. | :ref:`float<class_float>` | :ref:`lifetime_randomness<class_CPUParticles2D_property_lifetime_randomness>` | ``0.0`` |
  103. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  104. | :ref:`Curve<class_Curve>` | :ref:`linear_accel_curve<class_CPUParticles2D_property_linear_accel_curve>` | |
  105. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  106. | :ref:`float<class_float>` | :ref:`linear_accel_max<class_CPUParticles2D_property_linear_accel_max>` | ``0.0`` |
  107. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  108. | :ref:`float<class_float>` | :ref:`linear_accel_min<class_CPUParticles2D_property_linear_accel_min>` | ``0.0`` |
  109. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  110. | :ref:`bool<class_bool>` | :ref:`local_coords<class_CPUParticles2D_property_local_coords>` | ``false`` |
  111. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  112. | :ref:`bool<class_bool>` | :ref:`one_shot<class_CPUParticles2D_property_one_shot>` | ``false`` |
  113. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  114. | :ref:`Curve<class_Curve>` | :ref:`orbit_velocity_curve<class_CPUParticles2D_property_orbit_velocity_curve>` | |
  115. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  116. | :ref:`float<class_float>` | :ref:`orbit_velocity_max<class_CPUParticles2D_property_orbit_velocity_max>` | ``0.0`` |
  117. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  118. | :ref:`float<class_float>` | :ref:`orbit_velocity_min<class_CPUParticles2D_property_orbit_velocity_min>` | ``0.0`` |
  119. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  120. | :ref:`bool<class_bool>` | :ref:`particle_flag_align_y<class_CPUParticles2D_property_particle_flag_align_y>` | ``false`` |
  121. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  122. | :ref:`PhysicsInterpolationMode<enum_Node_PhysicsInterpolationMode>` | physics_interpolation_mode | ``2`` (overrides :ref:`Node<class_Node_property_physics_interpolation_mode>`) |
  123. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  124. | :ref:`float<class_float>` | :ref:`preprocess<class_CPUParticles2D_property_preprocess>` | ``0.0`` |
  125. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  126. | :ref:`Curve<class_Curve>` | :ref:`radial_accel_curve<class_CPUParticles2D_property_radial_accel_curve>` | |
  127. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  128. | :ref:`float<class_float>` | :ref:`radial_accel_max<class_CPUParticles2D_property_radial_accel_max>` | ``0.0`` |
  129. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  130. | :ref:`float<class_float>` | :ref:`radial_accel_min<class_CPUParticles2D_property_radial_accel_min>` | ``0.0`` |
  131. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  132. | :ref:`float<class_float>` | :ref:`randomness<class_CPUParticles2D_property_randomness>` | ``0.0`` |
  133. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  134. | :ref:`Curve<class_Curve>` | :ref:`scale_amount_curve<class_CPUParticles2D_property_scale_amount_curve>` | |
  135. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  136. | :ref:`float<class_float>` | :ref:`scale_amount_max<class_CPUParticles2D_property_scale_amount_max>` | ``1.0`` |
  137. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  138. | :ref:`float<class_float>` | :ref:`scale_amount_min<class_CPUParticles2D_property_scale_amount_min>` | ``1.0`` |
  139. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  140. | :ref:`Curve<class_Curve>` | :ref:`scale_curve_x<class_CPUParticles2D_property_scale_curve_x>` | |
  141. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  142. | :ref:`Curve<class_Curve>` | :ref:`scale_curve_y<class_CPUParticles2D_property_scale_curve_y>` | |
  143. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  144. | :ref:`int<class_int>` | :ref:`seed<class_CPUParticles2D_property_seed>` | ``0`` |
  145. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  146. | :ref:`float<class_float>` | :ref:`speed_scale<class_CPUParticles2D_property_speed_scale>` | ``1.0`` |
  147. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  148. | :ref:`bool<class_bool>` | :ref:`split_scale<class_CPUParticles2D_property_split_scale>` | ``false`` |
  149. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  150. | :ref:`float<class_float>` | :ref:`spread<class_CPUParticles2D_property_spread>` | ``45.0`` |
  151. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  152. | :ref:`Curve<class_Curve>` | :ref:`tangential_accel_curve<class_CPUParticles2D_property_tangential_accel_curve>` | |
  153. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  154. | :ref:`float<class_float>` | :ref:`tangential_accel_max<class_CPUParticles2D_property_tangential_accel_max>` | ``0.0`` |
  155. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  156. | :ref:`float<class_float>` | :ref:`tangential_accel_min<class_CPUParticles2D_property_tangential_accel_min>` | ``0.0`` |
  157. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  158. | :ref:`Texture2D<class_Texture2D>` | :ref:`texture<class_CPUParticles2D_property_texture>` | |
  159. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  160. | :ref:`bool<class_bool>` | :ref:`use_fixed_seed<class_CPUParticles2D_property_use_fixed_seed>` | ``false`` |
  161. +---------------------------------------------------------------------+-------------------------------------------------------------------------------------+-------------------------------------------------------------------------------+
  162. .. rst-class:: classref-reftable-group
  163. Methods
  164. -------
  165. .. table::
  166. :widths: auto
  167. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  168. | |void| | :ref:`convert_from_particles<class_CPUParticles2D_method_convert_from_particles>`\ (\ particles\: :ref:`Node<class_Node>`\ ) |
  169. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  170. | :ref:`Curve<class_Curve>` | :ref:`get_param_curve<class_CPUParticles2D_method_get_param_curve>`\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const| |
  171. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  172. | :ref:`float<class_float>` | :ref:`get_param_max<class_CPUParticles2D_method_get_param_max>`\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const| |
  173. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  174. | :ref:`float<class_float>` | :ref:`get_param_min<class_CPUParticles2D_method_get_param_min>`\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const| |
  175. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  176. | :ref:`bool<class_bool>` | :ref:`get_particle_flag<class_CPUParticles2D_method_get_particle_flag>`\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>`\ ) |const| |
  177. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  178. | |void| | :ref:`request_particles_process<class_CPUParticles2D_method_request_particles_process>`\ (\ process_time\: :ref:`float<class_float>`\ ) |
  179. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  180. | |void| | :ref:`restart<class_CPUParticles2D_method_restart>`\ (\ keep_seed\: :ref:`bool<class_bool>` = false\ ) |
  181. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  182. | |void| | :ref:`set_param_curve<class_CPUParticles2D_method_set_param_curve>`\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ ) |
  183. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  184. | |void| | :ref:`set_param_max<class_CPUParticles2D_method_set_param_max>`\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ ) |
  185. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  186. | |void| | :ref:`set_param_min<class_CPUParticles2D_method_set_param_min>`\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ ) |
  187. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  188. | |void| | :ref:`set_particle_flag<class_CPUParticles2D_method_set_particle_flag>`\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>`, enable\: :ref:`bool<class_bool>`\ ) |
  189. +---------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  190. .. rst-class:: classref-section-separator
  191. ----
  192. .. rst-class:: classref-descriptions-group
  193. Signals
  194. -------
  195. .. _class_CPUParticles2D_signal_finished:
  196. .. rst-class:: classref-signal
  197. **finished**\ (\ ) :ref:`🔗<class_CPUParticles2D_signal_finished>`
  198. Emitted when all active particles have finished processing. When :ref:`one_shot<class_CPUParticles2D_property_one_shot>` is disabled, particles will process continuously, so this is never emitted.
  199. .. rst-class:: classref-section-separator
  200. ----
  201. .. rst-class:: classref-descriptions-group
  202. Enumerations
  203. ------------
  204. .. _enum_CPUParticles2D_DrawOrder:
  205. .. rst-class:: classref-enumeration
  206. enum **DrawOrder**: :ref:`🔗<enum_CPUParticles2D_DrawOrder>`
  207. .. _class_CPUParticles2D_constant_DRAW_ORDER_INDEX:
  208. .. rst-class:: classref-enumeration-constant
  209. :ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>` **DRAW_ORDER_INDEX** = ``0``
  210. Particles are drawn in the order emitted.
  211. .. _class_CPUParticles2D_constant_DRAW_ORDER_LIFETIME:
  212. .. rst-class:: classref-enumeration-constant
  213. :ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>` **DRAW_ORDER_LIFETIME** = ``1``
  214. Particles are drawn in order of remaining lifetime. In other words, the particle with the highest lifetime is drawn at the front.
  215. .. rst-class:: classref-item-separator
  216. ----
  217. .. _enum_CPUParticles2D_Parameter:
  218. .. rst-class:: classref-enumeration
  219. enum **Parameter**: :ref:`🔗<enum_CPUParticles2D_Parameter>`
  220. .. _class_CPUParticles2D_constant_PARAM_INITIAL_LINEAR_VELOCITY:
  221. .. rst-class:: classref-enumeration-constant
  222. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_INITIAL_LINEAR_VELOCITY** = ``0``
  223. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set initial velocity properties.
  224. .. _class_CPUParticles2D_constant_PARAM_ANGULAR_VELOCITY:
  225. .. rst-class:: classref-enumeration-constant
  226. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_ANGULAR_VELOCITY** = ``1``
  227. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set angular velocity properties.
  228. .. _class_CPUParticles2D_constant_PARAM_ORBIT_VELOCITY:
  229. .. rst-class:: classref-enumeration-constant
  230. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_ORBIT_VELOCITY** = ``2``
  231. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set orbital velocity properties.
  232. .. _class_CPUParticles2D_constant_PARAM_LINEAR_ACCEL:
  233. .. rst-class:: classref-enumeration-constant
  234. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_LINEAR_ACCEL** = ``3``
  235. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set linear acceleration properties.
  236. .. _class_CPUParticles2D_constant_PARAM_RADIAL_ACCEL:
  237. .. rst-class:: classref-enumeration-constant
  238. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_RADIAL_ACCEL** = ``4``
  239. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set radial acceleration properties.
  240. .. _class_CPUParticles2D_constant_PARAM_TANGENTIAL_ACCEL:
  241. .. rst-class:: classref-enumeration-constant
  242. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_TANGENTIAL_ACCEL** = ``5``
  243. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set tangential acceleration properties.
  244. .. _class_CPUParticles2D_constant_PARAM_DAMPING:
  245. .. rst-class:: classref-enumeration-constant
  246. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_DAMPING** = ``6``
  247. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set damping properties.
  248. .. _class_CPUParticles2D_constant_PARAM_ANGLE:
  249. .. rst-class:: classref-enumeration-constant
  250. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_ANGLE** = ``7``
  251. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set angle properties.
  252. .. _class_CPUParticles2D_constant_PARAM_SCALE:
  253. .. rst-class:: classref-enumeration-constant
  254. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_SCALE** = ``8``
  255. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set scale properties.
  256. .. _class_CPUParticles2D_constant_PARAM_HUE_VARIATION:
  257. .. rst-class:: classref-enumeration-constant
  258. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_HUE_VARIATION** = ``9``
  259. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set hue variation properties.
  260. .. _class_CPUParticles2D_constant_PARAM_ANIM_SPEED:
  261. .. rst-class:: classref-enumeration-constant
  262. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_ANIM_SPEED** = ``10``
  263. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set animation speed properties.
  264. .. _class_CPUParticles2D_constant_PARAM_ANIM_OFFSET:
  265. .. rst-class:: classref-enumeration-constant
  266. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_ANIM_OFFSET** = ``11``
  267. Use with :ref:`set_param_min()<class_CPUParticles2D_method_set_param_min>`, :ref:`set_param_max()<class_CPUParticles2D_method_set_param_max>`, and :ref:`set_param_curve()<class_CPUParticles2D_method_set_param_curve>` to set animation offset properties.
  268. .. _class_CPUParticles2D_constant_PARAM_MAX:
  269. .. rst-class:: classref-enumeration-constant
  270. :ref:`Parameter<enum_CPUParticles2D_Parameter>` **PARAM_MAX** = ``12``
  271. Represents the size of the :ref:`Parameter<enum_CPUParticles2D_Parameter>` enum.
  272. .. rst-class:: classref-item-separator
  273. ----
  274. .. _enum_CPUParticles2D_ParticleFlags:
  275. .. rst-class:: classref-enumeration
  276. enum **ParticleFlags**: :ref:`🔗<enum_CPUParticles2D_ParticleFlags>`
  277. .. _class_CPUParticles2D_constant_PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY:
  278. .. rst-class:: classref-enumeration-constant
  279. :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>` **PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY** = ``0``
  280. Use with :ref:`set_particle_flag()<class_CPUParticles2D_method_set_particle_flag>` to set :ref:`particle_flag_align_y<class_CPUParticles2D_property_particle_flag_align_y>`.
  281. .. _class_CPUParticles2D_constant_PARTICLE_FLAG_ROTATE_Y:
  282. .. rst-class:: classref-enumeration-constant
  283. :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>` **PARTICLE_FLAG_ROTATE_Y** = ``1``
  284. Present for consistency with 3D particle nodes, not used in 2D.
  285. .. _class_CPUParticles2D_constant_PARTICLE_FLAG_DISABLE_Z:
  286. .. rst-class:: classref-enumeration-constant
  287. :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>` **PARTICLE_FLAG_DISABLE_Z** = ``2``
  288. Present for consistency with 3D particle nodes, not used in 2D.
  289. .. _class_CPUParticles2D_constant_PARTICLE_FLAG_MAX:
  290. .. rst-class:: classref-enumeration-constant
  291. :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>` **PARTICLE_FLAG_MAX** = ``3``
  292. Represents the size of the :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>` enum.
  293. .. rst-class:: classref-item-separator
  294. ----
  295. .. _enum_CPUParticles2D_EmissionShape:
  296. .. rst-class:: classref-enumeration
  297. enum **EmissionShape**: :ref:`🔗<enum_CPUParticles2D_EmissionShape>`
  298. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_POINT:
  299. .. rst-class:: classref-enumeration-constant
  300. :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` **EMISSION_SHAPE_POINT** = ``0``
  301. All particles will be emitted from a single point.
  302. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_SPHERE:
  303. .. rst-class:: classref-enumeration-constant
  304. :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` **EMISSION_SHAPE_SPHERE** = ``1``
  305. Particles will be emitted in the volume of a sphere flattened to two dimensions.
  306. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_SPHERE_SURFACE:
  307. .. rst-class:: classref-enumeration-constant
  308. :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` **EMISSION_SHAPE_SPHERE_SURFACE** = ``2``
  309. Particles will be emitted on the surface of a sphere flattened to two dimensions.
  310. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_RECTANGLE:
  311. .. rst-class:: classref-enumeration-constant
  312. :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` **EMISSION_SHAPE_RECTANGLE** = ``3``
  313. Particles will be emitted in the area of a rectangle.
  314. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_POINTS:
  315. .. rst-class:: classref-enumeration-constant
  316. :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` **EMISSION_SHAPE_POINTS** = ``4``
  317. Particles will be emitted at a position chosen randomly among :ref:`emission_points<class_CPUParticles2D_property_emission_points>`. Particle color will be modulated by :ref:`emission_colors<class_CPUParticles2D_property_emission_colors>`.
  318. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_DIRECTED_POINTS:
  319. .. rst-class:: classref-enumeration-constant
  320. :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` **EMISSION_SHAPE_DIRECTED_POINTS** = ``5``
  321. Particles will be emitted at a position chosen randomly among :ref:`emission_points<class_CPUParticles2D_property_emission_points>`. Particle velocity and rotation will be set based on :ref:`emission_normals<class_CPUParticles2D_property_emission_normals>`. Particle color will be modulated by :ref:`emission_colors<class_CPUParticles2D_property_emission_colors>`.
  322. .. _class_CPUParticles2D_constant_EMISSION_SHAPE_MAX:
  323. .. rst-class:: classref-enumeration-constant
  324. :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` **EMISSION_SHAPE_MAX** = ``6``
  325. Represents the size of the :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` enum.
  326. .. rst-class:: classref-section-separator
  327. ----
  328. .. rst-class:: classref-descriptions-group
  329. Property Descriptions
  330. ---------------------
  331. .. _class_CPUParticles2D_property_amount:
  332. .. rst-class:: classref-property
  333. :ref:`int<class_int>` **amount** = ``8`` :ref:`🔗<class_CPUParticles2D_property_amount>`
  334. .. rst-class:: classref-property-setget
  335. - |void| **set_amount**\ (\ value\: :ref:`int<class_int>`\ )
  336. - :ref:`int<class_int>` **get_amount**\ (\ )
  337. Number of particles emitted in one emission cycle.
  338. .. rst-class:: classref-item-separator
  339. ----
  340. .. _class_CPUParticles2D_property_angle_curve:
  341. .. rst-class:: classref-property
  342. :ref:`Curve<class_Curve>` **angle_curve** :ref:`🔗<class_CPUParticles2D_property_angle_curve>`
  343. .. rst-class:: classref-property-setget
  344. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  345. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  346. Each particle's rotation will be animated along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  347. .. rst-class:: classref-item-separator
  348. ----
  349. .. _class_CPUParticles2D_property_angle_max:
  350. .. rst-class:: classref-property
  351. :ref:`float<class_float>` **angle_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_angle_max>`
  352. .. rst-class:: classref-property-setget
  353. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  354. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  355. Maximum initial rotation applied to each particle, in degrees.
  356. .. rst-class:: classref-item-separator
  357. ----
  358. .. _class_CPUParticles2D_property_angle_min:
  359. .. rst-class:: classref-property
  360. :ref:`float<class_float>` **angle_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_angle_min>`
  361. .. rst-class:: classref-property-setget
  362. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  363. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  364. Minimum equivalent of :ref:`angle_max<class_CPUParticles2D_property_angle_max>`.
  365. .. rst-class:: classref-item-separator
  366. ----
  367. .. _class_CPUParticles2D_property_angular_velocity_curve:
  368. .. rst-class:: classref-property
  369. :ref:`Curve<class_Curve>` **angular_velocity_curve** :ref:`🔗<class_CPUParticles2D_property_angular_velocity_curve>`
  370. .. rst-class:: classref-property-setget
  371. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  372. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  373. Each particle's angular velocity will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  374. .. rst-class:: classref-item-separator
  375. ----
  376. .. _class_CPUParticles2D_property_angular_velocity_max:
  377. .. rst-class:: classref-property
  378. :ref:`float<class_float>` **angular_velocity_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_angular_velocity_max>`
  379. .. rst-class:: classref-property-setget
  380. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  381. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  382. Maximum initial angular velocity (rotation speed) applied to each particle in *degrees* per second.
  383. .. rst-class:: classref-item-separator
  384. ----
  385. .. _class_CPUParticles2D_property_angular_velocity_min:
  386. .. rst-class:: classref-property
  387. :ref:`float<class_float>` **angular_velocity_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_angular_velocity_min>`
  388. .. rst-class:: classref-property-setget
  389. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  390. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  391. Minimum equivalent of :ref:`angular_velocity_max<class_CPUParticles2D_property_angular_velocity_max>`.
  392. .. rst-class:: classref-item-separator
  393. ----
  394. .. _class_CPUParticles2D_property_anim_offset_curve:
  395. .. rst-class:: classref-property
  396. :ref:`Curve<class_Curve>` **anim_offset_curve** :ref:`🔗<class_CPUParticles2D_property_anim_offset_curve>`
  397. .. rst-class:: classref-property-setget
  398. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  399. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  400. Each particle's animation offset will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  401. .. rst-class:: classref-item-separator
  402. ----
  403. .. _class_CPUParticles2D_property_anim_offset_max:
  404. .. rst-class:: classref-property
  405. :ref:`float<class_float>` **anim_offset_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_anim_offset_max>`
  406. .. rst-class:: classref-property-setget
  407. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  408. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  409. Maximum animation offset that corresponds to frame index in the texture. ``0`` is the first frame, ``1`` is the last one. See :ref:`CanvasItemMaterial.particles_animation<class_CanvasItemMaterial_property_particles_animation>`.
  410. .. rst-class:: classref-item-separator
  411. ----
  412. .. _class_CPUParticles2D_property_anim_offset_min:
  413. .. rst-class:: classref-property
  414. :ref:`float<class_float>` **anim_offset_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_anim_offset_min>`
  415. .. rst-class:: classref-property-setget
  416. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  417. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  418. Minimum equivalent of :ref:`anim_offset_max<class_CPUParticles2D_property_anim_offset_max>`.
  419. .. rst-class:: classref-item-separator
  420. ----
  421. .. _class_CPUParticles2D_property_anim_speed_curve:
  422. .. rst-class:: classref-property
  423. :ref:`Curve<class_Curve>` **anim_speed_curve** :ref:`🔗<class_CPUParticles2D_property_anim_speed_curve>`
  424. .. rst-class:: classref-property-setget
  425. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  426. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  427. Each particle's animation speed will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  428. .. rst-class:: classref-item-separator
  429. ----
  430. .. _class_CPUParticles2D_property_anim_speed_max:
  431. .. rst-class:: classref-property
  432. :ref:`float<class_float>` **anim_speed_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_anim_speed_max>`
  433. .. rst-class:: classref-property-setget
  434. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  435. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  436. Maximum particle animation speed. Animation speed of ``1`` means that the particles will make full ``0`` to ``1`` offset cycle during lifetime, ``2`` means ``2`` cycles etc.
  437. With animation speed greater than ``1``, remember to enable :ref:`CanvasItemMaterial.particles_anim_loop<class_CanvasItemMaterial_property_particles_anim_loop>` property if you want the animation to repeat.
  438. .. rst-class:: classref-item-separator
  439. ----
  440. .. _class_CPUParticles2D_property_anim_speed_min:
  441. .. rst-class:: classref-property
  442. :ref:`float<class_float>` **anim_speed_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_anim_speed_min>`
  443. .. rst-class:: classref-property-setget
  444. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  445. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  446. Minimum equivalent of :ref:`anim_speed_max<class_CPUParticles2D_property_anim_speed_max>`.
  447. .. rst-class:: classref-item-separator
  448. ----
  449. .. _class_CPUParticles2D_property_color:
  450. .. rst-class:: classref-property
  451. :ref:`Color<class_Color>` **color** = ``Color(1, 1, 1, 1)`` :ref:`🔗<class_CPUParticles2D_property_color>`
  452. .. rst-class:: classref-property-setget
  453. - |void| **set_color**\ (\ value\: :ref:`Color<class_Color>`\ )
  454. - :ref:`Color<class_Color>` **get_color**\ (\ )
  455. Each particle's initial color. If :ref:`texture<class_CPUParticles2D_property_texture>` is defined, it will be multiplied by this color.
  456. .. rst-class:: classref-item-separator
  457. ----
  458. .. _class_CPUParticles2D_property_color_initial_ramp:
  459. .. rst-class:: classref-property
  460. :ref:`Gradient<class_Gradient>` **color_initial_ramp** :ref:`🔗<class_CPUParticles2D_property_color_initial_ramp>`
  461. .. rst-class:: classref-property-setget
  462. - |void| **set_color_initial_ramp**\ (\ value\: :ref:`Gradient<class_Gradient>`\ )
  463. - :ref:`Gradient<class_Gradient>` **get_color_initial_ramp**\ (\ )
  464. Each particle's initial color will vary along this :ref:`Gradient<class_Gradient>` (multiplied with :ref:`color<class_CPUParticles2D_property_color>`).
  465. .. rst-class:: classref-item-separator
  466. ----
  467. .. _class_CPUParticles2D_property_color_ramp:
  468. .. rst-class:: classref-property
  469. :ref:`Gradient<class_Gradient>` **color_ramp** :ref:`🔗<class_CPUParticles2D_property_color_ramp>`
  470. .. rst-class:: classref-property-setget
  471. - |void| **set_color_ramp**\ (\ value\: :ref:`Gradient<class_Gradient>`\ )
  472. - :ref:`Gradient<class_Gradient>` **get_color_ramp**\ (\ )
  473. Each particle's color will vary along this :ref:`Gradient<class_Gradient>` over its lifetime (multiplied with :ref:`color<class_CPUParticles2D_property_color>`).
  474. .. rst-class:: classref-item-separator
  475. ----
  476. .. _class_CPUParticles2D_property_damping_curve:
  477. .. rst-class:: classref-property
  478. :ref:`Curve<class_Curve>` **damping_curve** :ref:`🔗<class_CPUParticles2D_property_damping_curve>`
  479. .. rst-class:: classref-property-setget
  480. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  481. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  482. Damping will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  483. .. rst-class:: classref-item-separator
  484. ----
  485. .. _class_CPUParticles2D_property_damping_max:
  486. .. rst-class:: classref-property
  487. :ref:`float<class_float>` **damping_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_damping_max>`
  488. .. rst-class:: classref-property-setget
  489. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  490. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  491. The maximum rate at which particles lose velocity. For example value of ``100`` means that the particle will go from ``100`` velocity to ``0`` in ``1`` second.
  492. .. rst-class:: classref-item-separator
  493. ----
  494. .. _class_CPUParticles2D_property_damping_min:
  495. .. rst-class:: classref-property
  496. :ref:`float<class_float>` **damping_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_damping_min>`
  497. .. rst-class:: classref-property-setget
  498. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  499. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  500. Minimum equivalent of :ref:`damping_max<class_CPUParticles2D_property_damping_max>`.
  501. .. rst-class:: classref-item-separator
  502. ----
  503. .. _class_CPUParticles2D_property_direction:
  504. .. rst-class:: classref-property
  505. :ref:`Vector2<class_Vector2>` **direction** = ``Vector2(1, 0)`` :ref:`🔗<class_CPUParticles2D_property_direction>`
  506. .. rst-class:: classref-property-setget
  507. - |void| **set_direction**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
  508. - :ref:`Vector2<class_Vector2>` **get_direction**\ (\ )
  509. Unit vector specifying the particles' emission direction.
  510. .. rst-class:: classref-item-separator
  511. ----
  512. .. _class_CPUParticles2D_property_draw_order:
  513. .. rst-class:: classref-property
  514. :ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>` **draw_order** = ``0`` :ref:`🔗<class_CPUParticles2D_property_draw_order>`
  515. .. rst-class:: classref-property-setget
  516. - |void| **set_draw_order**\ (\ value\: :ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>`\ )
  517. - :ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>` **get_draw_order**\ (\ )
  518. Particle draw order. Uses :ref:`DrawOrder<enum_CPUParticles2D_DrawOrder>` values.
  519. .. rst-class:: classref-item-separator
  520. ----
  521. .. _class_CPUParticles2D_property_emission_colors:
  522. .. rst-class:: classref-property
  523. :ref:`PackedColorArray<class_PackedColorArray>` **emission_colors** :ref:`🔗<class_CPUParticles2D_property_emission_colors>`
  524. .. rst-class:: classref-property-setget
  525. - |void| **set_emission_colors**\ (\ value\: :ref:`PackedColorArray<class_PackedColorArray>`\ )
  526. - :ref:`PackedColorArray<class_PackedColorArray>` **get_emission_colors**\ (\ )
  527. Sets the :ref:`Color<class_Color>`\ s to modulate particles by when using :ref:`EMISSION_SHAPE_POINTS<class_CPUParticles2D_constant_EMISSION_SHAPE_POINTS>` or :ref:`EMISSION_SHAPE_DIRECTED_POINTS<class_CPUParticles2D_constant_EMISSION_SHAPE_DIRECTED_POINTS>`.
  528. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedColorArray<class_PackedColorArray>` for more details.
  529. .. rst-class:: classref-item-separator
  530. ----
  531. .. _class_CPUParticles2D_property_emission_normals:
  532. .. rst-class:: classref-property
  533. :ref:`PackedVector2Array<class_PackedVector2Array>` **emission_normals** :ref:`🔗<class_CPUParticles2D_property_emission_normals>`
  534. .. rst-class:: classref-property-setget
  535. - |void| **set_emission_normals**\ (\ value\: :ref:`PackedVector2Array<class_PackedVector2Array>`\ )
  536. - :ref:`PackedVector2Array<class_PackedVector2Array>` **get_emission_normals**\ (\ )
  537. Sets the direction the particles will be emitted in when using :ref:`EMISSION_SHAPE_DIRECTED_POINTS<class_CPUParticles2D_constant_EMISSION_SHAPE_DIRECTED_POINTS>`.
  538. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedVector2Array<class_PackedVector2Array>` for more details.
  539. .. rst-class:: classref-item-separator
  540. ----
  541. .. _class_CPUParticles2D_property_emission_points:
  542. .. rst-class:: classref-property
  543. :ref:`PackedVector2Array<class_PackedVector2Array>` **emission_points** :ref:`🔗<class_CPUParticles2D_property_emission_points>`
  544. .. rst-class:: classref-property-setget
  545. - |void| **set_emission_points**\ (\ value\: :ref:`PackedVector2Array<class_PackedVector2Array>`\ )
  546. - :ref:`PackedVector2Array<class_PackedVector2Array>` **get_emission_points**\ (\ )
  547. Sets the initial positions to spawn particles when using :ref:`EMISSION_SHAPE_POINTS<class_CPUParticles2D_constant_EMISSION_SHAPE_POINTS>` or :ref:`EMISSION_SHAPE_DIRECTED_POINTS<class_CPUParticles2D_constant_EMISSION_SHAPE_DIRECTED_POINTS>`.
  548. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedVector2Array<class_PackedVector2Array>` for more details.
  549. .. rst-class:: classref-item-separator
  550. ----
  551. .. _class_CPUParticles2D_property_emission_rect_extents:
  552. .. rst-class:: classref-property
  553. :ref:`Vector2<class_Vector2>` **emission_rect_extents** :ref:`🔗<class_CPUParticles2D_property_emission_rect_extents>`
  554. .. rst-class:: classref-property-setget
  555. - |void| **set_emission_rect_extents**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
  556. - :ref:`Vector2<class_Vector2>` **get_emission_rect_extents**\ (\ )
  557. The rectangle's extents if :ref:`emission_shape<class_CPUParticles2D_property_emission_shape>` is set to :ref:`EMISSION_SHAPE_RECTANGLE<class_CPUParticles2D_constant_EMISSION_SHAPE_RECTANGLE>`.
  558. .. rst-class:: classref-item-separator
  559. ----
  560. .. _class_CPUParticles2D_property_emission_shape:
  561. .. rst-class:: classref-property
  562. :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` **emission_shape** = ``0`` :ref:`🔗<class_CPUParticles2D_property_emission_shape>`
  563. .. rst-class:: classref-property-setget
  564. - |void| **set_emission_shape**\ (\ value\: :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>`\ )
  565. - :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` **get_emission_shape**\ (\ )
  566. Particles will be emitted inside this region. See :ref:`EmissionShape<enum_CPUParticles2D_EmissionShape>` for possible values.
  567. .. rst-class:: classref-item-separator
  568. ----
  569. .. _class_CPUParticles2D_property_emission_sphere_radius:
  570. .. rst-class:: classref-property
  571. :ref:`float<class_float>` **emission_sphere_radius** :ref:`🔗<class_CPUParticles2D_property_emission_sphere_radius>`
  572. .. rst-class:: classref-property-setget
  573. - |void| **set_emission_sphere_radius**\ (\ value\: :ref:`float<class_float>`\ )
  574. - :ref:`float<class_float>` **get_emission_sphere_radius**\ (\ )
  575. The sphere's radius if :ref:`emission_shape<class_CPUParticles2D_property_emission_shape>` is set to :ref:`EMISSION_SHAPE_SPHERE<class_CPUParticles2D_constant_EMISSION_SHAPE_SPHERE>`.
  576. .. rst-class:: classref-item-separator
  577. ----
  578. .. _class_CPUParticles2D_property_emitting:
  579. .. rst-class:: classref-property
  580. :ref:`bool<class_bool>` **emitting** = ``true`` :ref:`🔗<class_CPUParticles2D_property_emitting>`
  581. .. rst-class:: classref-property-setget
  582. - |void| **set_emitting**\ (\ value\: :ref:`bool<class_bool>`\ )
  583. - :ref:`bool<class_bool>` **is_emitting**\ (\ )
  584. If ``true``, particles are being emitted. :ref:`emitting<class_CPUParticles2D_property_emitting>` can be used to start and stop particles from emitting. However, if :ref:`one_shot<class_CPUParticles2D_property_one_shot>` is ``true`` setting :ref:`emitting<class_CPUParticles2D_property_emitting>` to ``true`` will not restart the emission cycle until after all active particles finish processing. You can use the :ref:`finished<class_CPUParticles2D_signal_finished>` signal to be notified once all active particles finish processing.
  585. .. rst-class:: classref-item-separator
  586. ----
  587. .. _class_CPUParticles2D_property_explosiveness:
  588. .. rst-class:: classref-property
  589. :ref:`float<class_float>` **explosiveness** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_explosiveness>`
  590. .. rst-class:: classref-property-setget
  591. - |void| **set_explosiveness_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  592. - :ref:`float<class_float>` **get_explosiveness_ratio**\ (\ )
  593. How rapidly particles in an emission cycle are emitted. If greater than ``0``, there will be a gap in emissions before the next cycle begins.
  594. .. rst-class:: classref-item-separator
  595. ----
  596. .. _class_CPUParticles2D_property_fixed_fps:
  597. .. rst-class:: classref-property
  598. :ref:`int<class_int>` **fixed_fps** = ``0`` :ref:`🔗<class_CPUParticles2D_property_fixed_fps>`
  599. .. rst-class:: classref-property-setget
  600. - |void| **set_fixed_fps**\ (\ value\: :ref:`int<class_int>`\ )
  601. - :ref:`int<class_int>` **get_fixed_fps**\ (\ )
  602. 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.
  603. .. rst-class:: classref-item-separator
  604. ----
  605. .. _class_CPUParticles2D_property_fract_delta:
  606. .. rst-class:: classref-property
  607. :ref:`bool<class_bool>` **fract_delta** = ``true`` :ref:`🔗<class_CPUParticles2D_property_fract_delta>`
  608. .. rst-class:: classref-property-setget
  609. - |void| **set_fractional_delta**\ (\ value\: :ref:`bool<class_bool>`\ )
  610. - :ref:`bool<class_bool>` **get_fractional_delta**\ (\ )
  611. If ``true``, results in fractional delta calculation which has a smoother particles display effect.
  612. .. rst-class:: classref-item-separator
  613. ----
  614. .. _class_CPUParticles2D_property_gravity:
  615. .. rst-class:: classref-property
  616. :ref:`Vector2<class_Vector2>` **gravity** = ``Vector2(0, 980)`` :ref:`🔗<class_CPUParticles2D_property_gravity>`
  617. .. rst-class:: classref-property-setget
  618. - |void| **set_gravity**\ (\ value\: :ref:`Vector2<class_Vector2>`\ )
  619. - :ref:`Vector2<class_Vector2>` **get_gravity**\ (\ )
  620. Gravity applied to every particle.
  621. .. rst-class:: classref-item-separator
  622. ----
  623. .. _class_CPUParticles2D_property_hue_variation_curve:
  624. .. rst-class:: classref-property
  625. :ref:`Curve<class_Curve>` **hue_variation_curve** :ref:`🔗<class_CPUParticles2D_property_hue_variation_curve>`
  626. .. rst-class:: classref-property-setget
  627. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  628. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  629. Each particle's hue will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  630. .. rst-class:: classref-item-separator
  631. ----
  632. .. _class_CPUParticles2D_property_hue_variation_max:
  633. .. rst-class:: classref-property
  634. :ref:`float<class_float>` **hue_variation_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_hue_variation_max>`
  635. .. rst-class:: classref-property-setget
  636. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  637. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  638. Maximum initial hue variation applied to each particle. It will shift the particle color's hue.
  639. .. rst-class:: classref-item-separator
  640. ----
  641. .. _class_CPUParticles2D_property_hue_variation_min:
  642. .. rst-class:: classref-property
  643. :ref:`float<class_float>` **hue_variation_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_hue_variation_min>`
  644. .. rst-class:: classref-property-setget
  645. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  646. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  647. Minimum equivalent of :ref:`hue_variation_max<class_CPUParticles2D_property_hue_variation_max>`.
  648. .. rst-class:: classref-item-separator
  649. ----
  650. .. _class_CPUParticles2D_property_initial_velocity_max:
  651. .. rst-class:: classref-property
  652. :ref:`float<class_float>` **initial_velocity_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_initial_velocity_max>`
  653. .. rst-class:: classref-property-setget
  654. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  655. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  656. Maximum initial velocity magnitude for each particle. Direction comes from :ref:`direction<class_CPUParticles2D_property_direction>` and :ref:`spread<class_CPUParticles2D_property_spread>`.
  657. .. rst-class:: classref-item-separator
  658. ----
  659. .. _class_CPUParticles2D_property_initial_velocity_min:
  660. .. rst-class:: classref-property
  661. :ref:`float<class_float>` **initial_velocity_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_initial_velocity_min>`
  662. .. rst-class:: classref-property-setget
  663. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  664. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  665. Minimum equivalent of :ref:`initial_velocity_max<class_CPUParticles2D_property_initial_velocity_max>`.
  666. .. rst-class:: classref-item-separator
  667. ----
  668. .. _class_CPUParticles2D_property_lifetime:
  669. .. rst-class:: classref-property
  670. :ref:`float<class_float>` **lifetime** = ``1.0`` :ref:`🔗<class_CPUParticles2D_property_lifetime>`
  671. .. rst-class:: classref-property-setget
  672. - |void| **set_lifetime**\ (\ value\: :ref:`float<class_float>`\ )
  673. - :ref:`float<class_float>` **get_lifetime**\ (\ )
  674. Amount of time each particle will exist.
  675. .. rst-class:: classref-item-separator
  676. ----
  677. .. _class_CPUParticles2D_property_lifetime_randomness:
  678. .. rst-class:: classref-property
  679. :ref:`float<class_float>` **lifetime_randomness** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_lifetime_randomness>`
  680. .. rst-class:: classref-property-setget
  681. - |void| **set_lifetime_randomness**\ (\ value\: :ref:`float<class_float>`\ )
  682. - :ref:`float<class_float>` **get_lifetime_randomness**\ (\ )
  683. Particle lifetime randomness ratio.
  684. .. rst-class:: classref-item-separator
  685. ----
  686. .. _class_CPUParticles2D_property_linear_accel_curve:
  687. .. rst-class:: classref-property
  688. :ref:`Curve<class_Curve>` **linear_accel_curve** :ref:`🔗<class_CPUParticles2D_property_linear_accel_curve>`
  689. .. rst-class:: classref-property-setget
  690. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  691. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  692. Each particle's linear acceleration will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  693. .. rst-class:: classref-item-separator
  694. ----
  695. .. _class_CPUParticles2D_property_linear_accel_max:
  696. .. rst-class:: classref-property
  697. :ref:`float<class_float>` **linear_accel_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_linear_accel_max>`
  698. .. rst-class:: classref-property-setget
  699. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  700. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  701. Maximum linear acceleration applied to each particle in the direction of motion.
  702. .. rst-class:: classref-item-separator
  703. ----
  704. .. _class_CPUParticles2D_property_linear_accel_min:
  705. .. rst-class:: classref-property
  706. :ref:`float<class_float>` **linear_accel_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_linear_accel_min>`
  707. .. rst-class:: classref-property-setget
  708. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  709. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  710. Minimum equivalent of :ref:`linear_accel_max<class_CPUParticles2D_property_linear_accel_max>`.
  711. .. rst-class:: classref-item-separator
  712. ----
  713. .. _class_CPUParticles2D_property_local_coords:
  714. .. rst-class:: classref-property
  715. :ref:`bool<class_bool>` **local_coords** = ``false`` :ref:`🔗<class_CPUParticles2D_property_local_coords>`
  716. .. rst-class:: classref-property-setget
  717. - |void| **set_use_local_coordinates**\ (\ value\: :ref:`bool<class_bool>`\ )
  718. - :ref:`bool<class_bool>` **get_use_local_coordinates**\ (\ )
  719. If ``true``, particles use the parent node's coordinate space (known as local coordinates). This will cause particles to move and rotate along the **CPUParticles2D** node (and its parents) when it is moved or rotated. If ``false``, particles use global coordinates; they will not move or rotate along the **CPUParticles2D** node (and its parents) when it is moved or rotated.
  720. .. rst-class:: classref-item-separator
  721. ----
  722. .. _class_CPUParticles2D_property_one_shot:
  723. .. rst-class:: classref-property
  724. :ref:`bool<class_bool>` **one_shot** = ``false`` :ref:`🔗<class_CPUParticles2D_property_one_shot>`
  725. .. rst-class:: classref-property-setget
  726. - |void| **set_one_shot**\ (\ value\: :ref:`bool<class_bool>`\ )
  727. - :ref:`bool<class_bool>` **get_one_shot**\ (\ )
  728. If ``true``, only one emission cycle occurs. If set ``true`` during a cycle, emission will stop at the cycle's end.
  729. .. rst-class:: classref-item-separator
  730. ----
  731. .. _class_CPUParticles2D_property_orbit_velocity_curve:
  732. .. rst-class:: classref-property
  733. :ref:`Curve<class_Curve>` **orbit_velocity_curve** :ref:`🔗<class_CPUParticles2D_property_orbit_velocity_curve>`
  734. .. rst-class:: classref-property-setget
  735. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  736. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  737. Each particle's orbital velocity will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  738. .. rst-class:: classref-item-separator
  739. ----
  740. .. _class_CPUParticles2D_property_orbit_velocity_max:
  741. .. rst-class:: classref-property
  742. :ref:`float<class_float>` **orbit_velocity_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_orbit_velocity_max>`
  743. .. rst-class:: classref-property-setget
  744. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  745. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  746. Maximum orbital velocity applied to each particle. Makes the particles circle around origin. Specified in number of full rotations around origin per second.
  747. .. rst-class:: classref-item-separator
  748. ----
  749. .. _class_CPUParticles2D_property_orbit_velocity_min:
  750. .. rst-class:: classref-property
  751. :ref:`float<class_float>` **orbit_velocity_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_orbit_velocity_min>`
  752. .. rst-class:: classref-property-setget
  753. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  754. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  755. Minimum equivalent of :ref:`orbit_velocity_max<class_CPUParticles2D_property_orbit_velocity_max>`.
  756. .. rst-class:: classref-item-separator
  757. ----
  758. .. _class_CPUParticles2D_property_particle_flag_align_y:
  759. .. rst-class:: classref-property
  760. :ref:`bool<class_bool>` **particle_flag_align_y** = ``false`` :ref:`🔗<class_CPUParticles2D_property_particle_flag_align_y>`
  761. .. rst-class:: classref-property-setget
  762. - |void| **set_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>`, enable\: :ref:`bool<class_bool>`\ )
  763. - :ref:`bool<class_bool>` **get_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>`\ ) |const|
  764. Align Y axis of particle with the direction of its velocity.
  765. .. rst-class:: classref-item-separator
  766. ----
  767. .. _class_CPUParticles2D_property_preprocess:
  768. .. rst-class:: classref-property
  769. :ref:`float<class_float>` **preprocess** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_preprocess>`
  770. .. rst-class:: classref-property-setget
  771. - |void| **set_pre_process_time**\ (\ value\: :ref:`float<class_float>`\ )
  772. - :ref:`float<class_float>` **get_pre_process_time**\ (\ )
  773. Particle system starts as if it had already run for this many seconds.
  774. .. rst-class:: classref-item-separator
  775. ----
  776. .. _class_CPUParticles2D_property_radial_accel_curve:
  777. .. rst-class:: classref-property
  778. :ref:`Curve<class_Curve>` **radial_accel_curve** :ref:`🔗<class_CPUParticles2D_property_radial_accel_curve>`
  779. .. rst-class:: classref-property-setget
  780. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  781. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  782. Each particle's radial acceleration will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  783. .. rst-class:: classref-item-separator
  784. ----
  785. .. _class_CPUParticles2D_property_radial_accel_max:
  786. .. rst-class:: classref-property
  787. :ref:`float<class_float>` **radial_accel_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_radial_accel_max>`
  788. .. rst-class:: classref-property-setget
  789. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  790. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  791. Maximum radial acceleration applied to each particle. Makes particle accelerate away from the origin or towards it if negative.
  792. .. rst-class:: classref-item-separator
  793. ----
  794. .. _class_CPUParticles2D_property_radial_accel_min:
  795. .. rst-class:: classref-property
  796. :ref:`float<class_float>` **radial_accel_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_radial_accel_min>`
  797. .. rst-class:: classref-property-setget
  798. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  799. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  800. Minimum equivalent of :ref:`radial_accel_max<class_CPUParticles2D_property_radial_accel_max>`.
  801. .. rst-class:: classref-item-separator
  802. ----
  803. .. _class_CPUParticles2D_property_randomness:
  804. .. rst-class:: classref-property
  805. :ref:`float<class_float>` **randomness** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_randomness>`
  806. .. rst-class:: classref-property-setget
  807. - |void| **set_randomness_ratio**\ (\ value\: :ref:`float<class_float>`\ )
  808. - :ref:`float<class_float>` **get_randomness_ratio**\ (\ )
  809. Emission lifetime randomness ratio.
  810. .. rst-class:: classref-item-separator
  811. ----
  812. .. _class_CPUParticles2D_property_scale_amount_curve:
  813. .. rst-class:: classref-property
  814. :ref:`Curve<class_Curve>` **scale_amount_curve** :ref:`🔗<class_CPUParticles2D_property_scale_amount_curve>`
  815. .. rst-class:: classref-property-setget
  816. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  817. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  818. Each particle's scale will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  819. .. rst-class:: classref-item-separator
  820. ----
  821. .. _class_CPUParticles2D_property_scale_amount_max:
  822. .. rst-class:: classref-property
  823. :ref:`float<class_float>` **scale_amount_max** = ``1.0`` :ref:`🔗<class_CPUParticles2D_property_scale_amount_max>`
  824. .. rst-class:: classref-property-setget
  825. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  826. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  827. Maximum initial scale applied to each particle.
  828. .. rst-class:: classref-item-separator
  829. ----
  830. .. _class_CPUParticles2D_property_scale_amount_min:
  831. .. rst-class:: classref-property
  832. :ref:`float<class_float>` **scale_amount_min** = ``1.0`` :ref:`🔗<class_CPUParticles2D_property_scale_amount_min>`
  833. .. rst-class:: classref-property-setget
  834. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  835. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  836. Minimum equivalent of :ref:`scale_amount_max<class_CPUParticles2D_property_scale_amount_max>`.
  837. .. rst-class:: classref-item-separator
  838. ----
  839. .. _class_CPUParticles2D_property_scale_curve_x:
  840. .. rst-class:: classref-property
  841. :ref:`Curve<class_Curve>` **scale_curve_x** :ref:`🔗<class_CPUParticles2D_property_scale_curve_x>`
  842. .. rst-class:: classref-property-setget
  843. - |void| **set_scale_curve_x**\ (\ value\: :ref:`Curve<class_Curve>`\ )
  844. - :ref:`Curve<class_Curve>` **get_scale_curve_x**\ (\ )
  845. Each particle's horizontal scale will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  846. \ :ref:`split_scale<class_CPUParticles2D_property_split_scale>` must be enabled.
  847. .. rst-class:: classref-item-separator
  848. ----
  849. .. _class_CPUParticles2D_property_scale_curve_y:
  850. .. rst-class:: classref-property
  851. :ref:`Curve<class_Curve>` **scale_curve_y** :ref:`🔗<class_CPUParticles2D_property_scale_curve_y>`
  852. .. rst-class:: classref-property-setget
  853. - |void| **set_scale_curve_y**\ (\ value\: :ref:`Curve<class_Curve>`\ )
  854. - :ref:`Curve<class_Curve>` **get_scale_curve_y**\ (\ )
  855. Each particle's vertical scale will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  856. \ :ref:`split_scale<class_CPUParticles2D_property_split_scale>` must be enabled.
  857. .. rst-class:: classref-item-separator
  858. ----
  859. .. _class_CPUParticles2D_property_seed:
  860. .. rst-class:: classref-property
  861. :ref:`int<class_int>` **seed** = ``0`` :ref:`🔗<class_CPUParticles2D_property_seed>`
  862. .. rst-class:: classref-property-setget
  863. - |void| **set_seed**\ (\ value\: :ref:`int<class_int>`\ )
  864. - :ref:`int<class_int>` **get_seed**\ (\ )
  865. Sets the random seed used by the particle system. Only effective if :ref:`use_fixed_seed<class_CPUParticles2D_property_use_fixed_seed>` is ``true``.
  866. .. rst-class:: classref-item-separator
  867. ----
  868. .. _class_CPUParticles2D_property_speed_scale:
  869. .. rst-class:: classref-property
  870. :ref:`float<class_float>` **speed_scale** = ``1.0`` :ref:`🔗<class_CPUParticles2D_property_speed_scale>`
  871. .. rst-class:: classref-property-setget
  872. - |void| **set_speed_scale**\ (\ value\: :ref:`float<class_float>`\ )
  873. - :ref:`float<class_float>` **get_speed_scale**\ (\ )
  874. Particle system's running speed scaling ratio. A value of ``0`` can be used to pause the particles.
  875. .. rst-class:: classref-item-separator
  876. ----
  877. .. _class_CPUParticles2D_property_split_scale:
  878. .. rst-class:: classref-property
  879. :ref:`bool<class_bool>` **split_scale** = ``false`` :ref:`🔗<class_CPUParticles2D_property_split_scale>`
  880. .. rst-class:: classref-property-setget
  881. - |void| **set_split_scale**\ (\ value\: :ref:`bool<class_bool>`\ )
  882. - :ref:`bool<class_bool>` **get_split_scale**\ (\ )
  883. If ``true``, the scale curve will be split into x and y components. See :ref:`scale_curve_x<class_CPUParticles2D_property_scale_curve_x>` and :ref:`scale_curve_y<class_CPUParticles2D_property_scale_curve_y>`.
  884. .. rst-class:: classref-item-separator
  885. ----
  886. .. _class_CPUParticles2D_property_spread:
  887. .. rst-class:: classref-property
  888. :ref:`float<class_float>` **spread** = ``45.0`` :ref:`🔗<class_CPUParticles2D_property_spread>`
  889. .. rst-class:: classref-property-setget
  890. - |void| **set_spread**\ (\ value\: :ref:`float<class_float>`\ )
  891. - :ref:`float<class_float>` **get_spread**\ (\ )
  892. Each particle's initial direction range from ``+spread`` to ``-spread`` degrees.
  893. .. rst-class:: classref-item-separator
  894. ----
  895. .. _class_CPUParticles2D_property_tangential_accel_curve:
  896. .. rst-class:: classref-property
  897. :ref:`Curve<class_Curve>` **tangential_accel_curve** :ref:`🔗<class_CPUParticles2D_property_tangential_accel_curve>`
  898. .. rst-class:: classref-property-setget
  899. - |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ )
  900. - :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  901. Each particle's tangential acceleration will vary along this :ref:`Curve<class_Curve>`. Should be a unit :ref:`Curve<class_Curve>`.
  902. .. rst-class:: classref-item-separator
  903. ----
  904. .. _class_CPUParticles2D_property_tangential_accel_max:
  905. .. rst-class:: classref-property
  906. :ref:`float<class_float>` **tangential_accel_max** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_tangential_accel_max>`
  907. .. rst-class:: classref-property-setget
  908. - |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  909. - :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  910. Maximum tangential acceleration applied to each particle. Tangential acceleration is perpendicular to the particle's velocity giving the particles a swirling motion.
  911. .. rst-class:: classref-item-separator
  912. ----
  913. .. _class_CPUParticles2D_property_tangential_accel_min:
  914. .. rst-class:: classref-property
  915. :ref:`float<class_float>` **tangential_accel_min** = ``0.0`` :ref:`🔗<class_CPUParticles2D_property_tangential_accel_min>`
  916. .. rst-class:: classref-property-setget
  917. - |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ )
  918. - :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const|
  919. Minimum equivalent of :ref:`tangential_accel_max<class_CPUParticles2D_property_tangential_accel_max>`.
  920. .. rst-class:: classref-item-separator
  921. ----
  922. .. _class_CPUParticles2D_property_texture:
  923. .. rst-class:: classref-property
  924. :ref:`Texture2D<class_Texture2D>` **texture** :ref:`🔗<class_CPUParticles2D_property_texture>`
  925. .. rst-class:: classref-property-setget
  926. - |void| **set_texture**\ (\ value\: :ref:`Texture2D<class_Texture2D>`\ )
  927. - :ref:`Texture2D<class_Texture2D>` **get_texture**\ (\ )
  928. Particle texture. If ``null``, particles will be squares.
  929. .. rst-class:: classref-item-separator
  930. ----
  931. .. _class_CPUParticles2D_property_use_fixed_seed:
  932. .. rst-class:: classref-property
  933. :ref:`bool<class_bool>` **use_fixed_seed** = ``false`` :ref:`🔗<class_CPUParticles2D_property_use_fixed_seed>`
  934. .. rst-class:: classref-property-setget
  935. - |void| **set_use_fixed_seed**\ (\ value\: :ref:`bool<class_bool>`\ )
  936. - :ref:`bool<class_bool>` **get_use_fixed_seed**\ (\ )
  937. If ``true``, particles will use the same seed for every simulation using the seed defined in :ref:`seed<class_CPUParticles2D_property_seed>`. This is useful for situations where the visual outcome should be consistent across replays, for example when using Movie Maker mode.
  938. .. rst-class:: classref-section-separator
  939. ----
  940. .. rst-class:: classref-descriptions-group
  941. Method Descriptions
  942. -------------------
  943. .. _class_CPUParticles2D_method_convert_from_particles:
  944. .. rst-class:: classref-method
  945. |void| **convert_from_particles**\ (\ particles\: :ref:`Node<class_Node>`\ ) :ref:`🔗<class_CPUParticles2D_method_convert_from_particles>`
  946. Sets this node's properties to match a given :ref:`GPUParticles2D<class_GPUParticles2D>` node with an assigned :ref:`ParticleProcessMaterial<class_ParticleProcessMaterial>`.
  947. .. rst-class:: classref-item-separator
  948. ----
  949. .. _class_CPUParticles2D_method_get_param_curve:
  950. .. rst-class:: classref-method
  951. :ref:`Curve<class_Curve>` **get_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const| :ref:`🔗<class_CPUParticles2D_method_get_param_curve>`
  952. Returns the :ref:`Curve<class_Curve>` of the parameter specified by :ref:`Parameter<enum_CPUParticles2D_Parameter>`.
  953. .. rst-class:: classref-item-separator
  954. ----
  955. .. _class_CPUParticles2D_method_get_param_max:
  956. .. rst-class:: classref-method
  957. :ref:`float<class_float>` **get_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const| :ref:`🔗<class_CPUParticles2D_method_get_param_max>`
  958. Returns the maximum value range for the given parameter.
  959. .. rst-class:: classref-item-separator
  960. ----
  961. .. _class_CPUParticles2D_method_get_param_min:
  962. .. rst-class:: classref-method
  963. :ref:`float<class_float>` **get_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`\ ) |const| :ref:`🔗<class_CPUParticles2D_method_get_param_min>`
  964. Returns the minimum value range for the given parameter.
  965. .. rst-class:: classref-item-separator
  966. ----
  967. .. _class_CPUParticles2D_method_get_particle_flag:
  968. .. rst-class:: classref-method
  969. :ref:`bool<class_bool>` **get_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>`\ ) |const| :ref:`🔗<class_CPUParticles2D_method_get_particle_flag>`
  970. Returns the enabled state of the given particle flag (see :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>` for options).
  971. .. rst-class:: classref-item-separator
  972. ----
  973. .. _class_CPUParticles2D_method_request_particles_process:
  974. .. rst-class:: classref-method
  975. |void| **request_particles_process**\ (\ process_time\: :ref:`float<class_float>`\ ) :ref:`🔗<class_CPUParticles2D_method_request_particles_process>`
  976. Requests the particles to process for extra process time during a single frame.
  977. Useful for particle playback, if used in combination with :ref:`use_fixed_seed<class_CPUParticles2D_property_use_fixed_seed>` or by calling :ref:`restart()<class_CPUParticles2D_method_restart>` with parameter ``keep_seed`` set to ``true``.
  978. .. rst-class:: classref-item-separator
  979. ----
  980. .. _class_CPUParticles2D_method_restart:
  981. .. rst-class:: classref-method
  982. |void| **restart**\ (\ keep_seed\: :ref:`bool<class_bool>` = false\ ) :ref:`🔗<class_CPUParticles2D_method_restart>`
  983. Restarts the particle emitter.
  984. If ``keep_seed`` is ``true``, the current random seed will be preserved. Useful for seeking and playback.
  985. .. rst-class:: classref-item-separator
  986. ----
  987. .. _class_CPUParticles2D_method_set_param_curve:
  988. .. rst-class:: classref-method
  989. |void| **set_param_curve**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, curve\: :ref:`Curve<class_Curve>`\ ) :ref:`🔗<class_CPUParticles2D_method_set_param_curve>`
  990. Sets the :ref:`Curve<class_Curve>` of the parameter specified by :ref:`Parameter<enum_CPUParticles2D_Parameter>`. Should be a unit :ref:`Curve<class_Curve>`.
  991. .. rst-class:: classref-item-separator
  992. ----
  993. .. _class_CPUParticles2D_method_set_param_max:
  994. .. rst-class:: classref-method
  995. |void| **set_param_max**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ ) :ref:`🔗<class_CPUParticles2D_method_set_param_max>`
  996. Sets the maximum value for the given parameter.
  997. .. rst-class:: classref-item-separator
  998. ----
  999. .. _class_CPUParticles2D_method_set_param_min:
  1000. .. rst-class:: classref-method
  1001. |void| **set_param_min**\ (\ param\: :ref:`Parameter<enum_CPUParticles2D_Parameter>`, value\: :ref:`float<class_float>`\ ) :ref:`🔗<class_CPUParticles2D_method_set_param_min>`
  1002. Sets the minimum value for the given parameter.
  1003. .. rst-class:: classref-item-separator
  1004. ----
  1005. .. _class_CPUParticles2D_method_set_particle_flag:
  1006. .. rst-class:: classref-method
  1007. |void| **set_particle_flag**\ (\ particle_flag\: :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_CPUParticles2D_method_set_particle_flag>`
  1008. Enables or disables the given flag (see :ref:`ParticleFlags<enum_CPUParticles2D_ParticleFlags>` for options).
  1009. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  1010. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  1011. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  1012. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  1013. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  1014. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  1015. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  1016. .. |void| replace:: :abbr:`void (No return value.)`