class_particlesmaterial.rst 74 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402
  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/ParticlesMaterial.xml.
  6. .. _class_ParticlesMaterial:
  7. ParticlesMaterial
  8. =================
  9. **Inherits:** :ref:`Material<class_Material>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Particle properties for :ref:`GPUParticles3D<class_GPUParticles3D>` and :ref:`GPUParticles2D<class_GPUParticles2D>` nodes.
  11. Description
  12. -----------
  13. ParticlesMaterial defines particle properties and behavior. It is used in the ``process_material`` of :ref:`GPUParticles3D<class_GPUParticles3D>` and :ref:`GPUParticles2D<class_GPUParticles2D>` emitter nodes.
  14. Some of this material's properties are applied to each particle when emitted, while others can have a :ref:`CurveTexture<class_CurveTexture>` applied to vary values over the lifetime of the particle.
  15. Particle animation is available only in :ref:`GPUParticles2D<class_GPUParticles2D>`. To use it, attach a :ref:`CanvasItemMaterial<class_CanvasItemMaterial>`, with :ref:`CanvasItemMaterial.particles_animation<class_CanvasItemMaterial_property_particles_animation>` enabled, to the particles node.
  16. Properties
  17. ----------
  18. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  19. | :ref:`Texture2D<class_Texture2D>` | :ref:`angle_curve<class_ParticlesMaterial_property_angle_curve>` | |
  20. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  21. | :ref:`float<class_float>` | :ref:`angle_max<class_ParticlesMaterial_property_angle_max>` | ``0.0`` |
  22. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  23. | :ref:`float<class_float>` | :ref:`angle_min<class_ParticlesMaterial_property_angle_min>` | ``0.0`` |
  24. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  25. | :ref:`Texture2D<class_Texture2D>` | :ref:`angular_velocity_curve<class_ParticlesMaterial_property_angular_velocity_curve>` | |
  26. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  27. | :ref:`float<class_float>` | :ref:`angular_velocity_max<class_ParticlesMaterial_property_angular_velocity_max>` | ``0.0`` |
  28. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  29. | :ref:`float<class_float>` | :ref:`angular_velocity_min<class_ParticlesMaterial_property_angular_velocity_min>` | ``0.0`` |
  30. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  31. | :ref:`Texture2D<class_Texture2D>` | :ref:`anim_offset_curve<class_ParticlesMaterial_property_anim_offset_curve>` | |
  32. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  33. | :ref:`float<class_float>` | :ref:`anim_offset_max<class_ParticlesMaterial_property_anim_offset_max>` | ``0.0`` |
  34. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  35. | :ref:`float<class_float>` | :ref:`anim_offset_min<class_ParticlesMaterial_property_anim_offset_min>` | ``0.0`` |
  36. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  37. | :ref:`Texture2D<class_Texture2D>` | :ref:`anim_speed_curve<class_ParticlesMaterial_property_anim_speed_curve>` | |
  38. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  39. | :ref:`float<class_float>` | :ref:`anim_speed_max<class_ParticlesMaterial_property_anim_speed_max>` | ``0.0`` |
  40. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  41. | :ref:`float<class_float>` | :ref:`anim_speed_min<class_ParticlesMaterial_property_anim_speed_min>` | ``0.0`` |
  42. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  43. | :ref:`bool<class_bool>` | :ref:`attractor_interaction_enabled<class_ParticlesMaterial_property_attractor_interaction_enabled>` | ``true`` |
  44. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  45. | :ref:`float<class_float>` | :ref:`collision_bounce<class_ParticlesMaterial_property_collision_bounce>` | ``0.0`` |
  46. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  47. | :ref:`bool<class_bool>` | :ref:`collision_enabled<class_ParticlesMaterial_property_collision_enabled>` | ``false`` |
  48. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  49. | :ref:`float<class_float>` | :ref:`collision_friction<class_ParticlesMaterial_property_collision_friction>` | ``0.0`` |
  50. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  51. | :ref:`bool<class_bool>` | :ref:`collision_use_scale<class_ParticlesMaterial_property_collision_use_scale>` | ``false`` |
  52. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  53. | :ref:`Color<class_Color>` | :ref:`color<class_ParticlesMaterial_property_color>` | ``Color(1, 1, 1, 1)`` |
  54. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  55. | :ref:`Texture2D<class_Texture2D>` | :ref:`color_initial_ramp<class_ParticlesMaterial_property_color_initial_ramp>` | |
  56. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  57. | :ref:`Texture2D<class_Texture2D>` | :ref:`color_ramp<class_ParticlesMaterial_property_color_ramp>` | |
  58. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  59. | :ref:`Texture2D<class_Texture2D>` | :ref:`damping_curve<class_ParticlesMaterial_property_damping_curve>` | |
  60. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  61. | :ref:`float<class_float>` | :ref:`damping_max<class_ParticlesMaterial_property_damping_max>` | ``0.0`` |
  62. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  63. | :ref:`float<class_float>` | :ref:`damping_min<class_ParticlesMaterial_property_damping_min>` | ``0.0`` |
  64. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  65. | :ref:`Vector3<class_Vector3>` | :ref:`direction<class_ParticlesMaterial_property_direction>` | ``Vector3(1, 0, 0)`` |
  66. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  67. | :ref:`Vector3<class_Vector3>` | :ref:`emission_box_extents<class_ParticlesMaterial_property_emission_box_extents>` | |
  68. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  69. | :ref:`Texture2D<class_Texture2D>` | :ref:`emission_color_texture<class_ParticlesMaterial_property_emission_color_texture>` | |
  70. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  71. | :ref:`Texture2D<class_Texture2D>` | :ref:`emission_normal_texture<class_ParticlesMaterial_property_emission_normal_texture>` | |
  72. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  73. | :ref:`int<class_int>` | :ref:`emission_point_count<class_ParticlesMaterial_property_emission_point_count>` | |
  74. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  75. | :ref:`Texture2D<class_Texture2D>` | :ref:`emission_point_texture<class_ParticlesMaterial_property_emission_point_texture>` | |
  76. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  77. | :ref:`Vector3<class_Vector3>` | :ref:`emission_ring_axis<class_ParticlesMaterial_property_emission_ring_axis>` | |
  78. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  79. | :ref:`float<class_float>` | :ref:`emission_ring_height<class_ParticlesMaterial_property_emission_ring_height>` | |
  80. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  81. | :ref:`float<class_float>` | :ref:`emission_ring_inner_radius<class_ParticlesMaterial_property_emission_ring_inner_radius>` | |
  82. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  83. | :ref:`float<class_float>` | :ref:`emission_ring_radius<class_ParticlesMaterial_property_emission_ring_radius>` | |
  84. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  85. | :ref:`EmissionShape<enum_ParticlesMaterial_EmissionShape>` | :ref:`emission_shape<class_ParticlesMaterial_property_emission_shape>` | ``0`` |
  86. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  87. | :ref:`float<class_float>` | :ref:`emission_sphere_radius<class_ParticlesMaterial_property_emission_sphere_radius>` | |
  88. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  89. | :ref:`float<class_float>` | :ref:`flatness<class_ParticlesMaterial_property_flatness>` | ``0.0`` |
  90. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  91. | :ref:`Vector3<class_Vector3>` | :ref:`gravity<class_ParticlesMaterial_property_gravity>` | ``Vector3(0, -9.8, 0)`` |
  92. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  93. | :ref:`Texture2D<class_Texture2D>` | :ref:`hue_variation_curve<class_ParticlesMaterial_property_hue_variation_curve>` | |
  94. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  95. | :ref:`float<class_float>` | :ref:`hue_variation_max<class_ParticlesMaterial_property_hue_variation_max>` | ``0.0`` |
  96. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  97. | :ref:`float<class_float>` | :ref:`hue_variation_min<class_ParticlesMaterial_property_hue_variation_min>` | ``0.0`` |
  98. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  99. | :ref:`float<class_float>` | :ref:`initial_velocity_max<class_ParticlesMaterial_property_initial_velocity_max>` | ``0.0`` |
  100. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  101. | :ref:`float<class_float>` | :ref:`initial_velocity_min<class_ParticlesMaterial_property_initial_velocity_min>` | ``0.0`` |
  102. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  103. | :ref:`float<class_float>` | :ref:`lifetime_randomness<class_ParticlesMaterial_property_lifetime_randomness>` | ``0.0`` |
  104. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  105. | :ref:`Texture2D<class_Texture2D>` | :ref:`linear_accel_curve<class_ParticlesMaterial_property_linear_accel_curve>` | |
  106. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  107. | :ref:`float<class_float>` | :ref:`linear_accel_max<class_ParticlesMaterial_property_linear_accel_max>` | ``0.0`` |
  108. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  109. | :ref:`float<class_float>` | :ref:`linear_accel_min<class_ParticlesMaterial_property_linear_accel_min>` | ``0.0`` |
  110. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  111. | :ref:`Texture2D<class_Texture2D>` | :ref:`orbit_velocity_curve<class_ParticlesMaterial_property_orbit_velocity_curve>` | |
  112. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  113. | :ref:`float<class_float>` | :ref:`orbit_velocity_max<class_ParticlesMaterial_property_orbit_velocity_max>` | |
  114. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  115. | :ref:`float<class_float>` | :ref:`orbit_velocity_min<class_ParticlesMaterial_property_orbit_velocity_min>` | |
  116. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  117. | :ref:`bool<class_bool>` | :ref:`particle_flag_align_y<class_ParticlesMaterial_property_particle_flag_align_y>` | ``false`` |
  118. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  119. | :ref:`bool<class_bool>` | :ref:`particle_flag_disable_z<class_ParticlesMaterial_property_particle_flag_disable_z>` | ``false`` |
  120. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  121. | :ref:`bool<class_bool>` | :ref:`particle_flag_rotate_y<class_ParticlesMaterial_property_particle_flag_rotate_y>` | ``false`` |
  122. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  123. | :ref:`Texture2D<class_Texture2D>` | :ref:`radial_accel_curve<class_ParticlesMaterial_property_radial_accel_curve>` | |
  124. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  125. | :ref:`float<class_float>` | :ref:`radial_accel_max<class_ParticlesMaterial_property_radial_accel_max>` | ``0.0`` |
  126. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  127. | :ref:`float<class_float>` | :ref:`radial_accel_min<class_ParticlesMaterial_property_radial_accel_min>` | ``0.0`` |
  128. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  129. | :ref:`Texture2D<class_Texture2D>` | :ref:`scale_curve<class_ParticlesMaterial_property_scale_curve>` | |
  130. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  131. | :ref:`float<class_float>` | :ref:`scale_max<class_ParticlesMaterial_property_scale_max>` | ``1.0`` |
  132. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  133. | :ref:`float<class_float>` | :ref:`scale_min<class_ParticlesMaterial_property_scale_min>` | ``1.0`` |
  134. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  135. | :ref:`float<class_float>` | :ref:`spread<class_ParticlesMaterial_property_spread>` | ``45.0`` |
  136. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  137. | :ref:`int<class_int>` | :ref:`sub_emitter_amount_at_end<class_ParticlesMaterial_property_sub_emitter_amount_at_end>` | |
  138. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  139. | :ref:`float<class_float>` | :ref:`sub_emitter_frequency<class_ParticlesMaterial_property_sub_emitter_frequency>` | |
  140. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  141. | :ref:`bool<class_bool>` | :ref:`sub_emitter_keep_velocity<class_ParticlesMaterial_property_sub_emitter_keep_velocity>` | ``false`` |
  142. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  143. | :ref:`SubEmitterMode<enum_ParticlesMaterial_SubEmitterMode>` | :ref:`sub_emitter_mode<class_ParticlesMaterial_property_sub_emitter_mode>` | ``0`` |
  144. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  145. | :ref:`Texture2D<class_Texture2D>` | :ref:`tangential_accel_curve<class_ParticlesMaterial_property_tangential_accel_curve>` | |
  146. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  147. | :ref:`float<class_float>` | :ref:`tangential_accel_max<class_ParticlesMaterial_property_tangential_accel_max>` | ``0.0`` |
  148. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  149. | :ref:`float<class_float>` | :ref:`tangential_accel_min<class_ParticlesMaterial_property_tangential_accel_min>` | ``0.0`` |
  150. +--------------------------------------------------------------+------------------------------------------------------------------------------------------------------+-------------------------+
  151. Methods
  152. -------
  153. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  154. | :ref:`float<class_float>` | :ref:`get_param_max<class_ParticlesMaterial_method_get_param_max>` **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param **)** |const| |
  155. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  156. | :ref:`float<class_float>` | :ref:`get_param_min<class_ParticlesMaterial_method_get_param_min>` **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param **)** |const| |
  157. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  158. | :ref:`Texture2D<class_Texture2D>` | :ref:`get_param_texture<class_ParticlesMaterial_method_get_param_texture>` **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param **)** |const| |
  159. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  160. | :ref:`bool<class_bool>` | :ref:`get_particle_flag<class_ParticlesMaterial_method_get_particle_flag>` **(** :ref:`ParticleFlags<enum_ParticlesMaterial_ParticleFlags>` particle_flag **)** |const| |
  161. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  162. | void | :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>` **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param, :ref:`float<class_float>` value **)** |
  163. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  164. | void | :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>` **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param, :ref:`float<class_float>` value **)** |
  165. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  166. | void | :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param, :ref:`Texture2D<class_Texture2D>` texture **)** |
  167. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  168. | void | :ref:`set_particle_flag<class_ParticlesMaterial_method_set_particle_flag>` **(** :ref:`ParticleFlags<enum_ParticlesMaterial_ParticleFlags>` particle_flag, :ref:`bool<class_bool>` enable **)** |
  169. +-----------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  170. Enumerations
  171. ------------
  172. .. _enum_ParticlesMaterial_Parameter:
  173. .. _class_ParticlesMaterial_constant_PARAM_INITIAL_LINEAR_VELOCITY:
  174. .. _class_ParticlesMaterial_constant_PARAM_ANGULAR_VELOCITY:
  175. .. _class_ParticlesMaterial_constant_PARAM_ORBIT_VELOCITY:
  176. .. _class_ParticlesMaterial_constant_PARAM_LINEAR_ACCEL:
  177. .. _class_ParticlesMaterial_constant_PARAM_RADIAL_ACCEL:
  178. .. _class_ParticlesMaterial_constant_PARAM_TANGENTIAL_ACCEL:
  179. .. _class_ParticlesMaterial_constant_PARAM_DAMPING:
  180. .. _class_ParticlesMaterial_constant_PARAM_ANGLE:
  181. .. _class_ParticlesMaterial_constant_PARAM_SCALE:
  182. .. _class_ParticlesMaterial_constant_PARAM_HUE_VARIATION:
  183. .. _class_ParticlesMaterial_constant_PARAM_ANIM_SPEED:
  184. .. _class_ParticlesMaterial_constant_PARAM_ANIM_OFFSET:
  185. .. _class_ParticlesMaterial_constant_PARAM_MAX:
  186. enum **Parameter**:
  187. - **PARAM_INITIAL_LINEAR_VELOCITY** = **0** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set initial velocity properties.
  188. - **PARAM_ANGULAR_VELOCITY** = **1** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set angular velocity properties.
  189. - **PARAM_ORBIT_VELOCITY** = **2** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set orbital velocity properties.
  190. - **PARAM_LINEAR_ACCEL** = **3** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set linear acceleration properties.
  191. - **PARAM_RADIAL_ACCEL** = **4** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set radial acceleration properties.
  192. - **PARAM_TANGENTIAL_ACCEL** = **5** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set tangential acceleration properties.
  193. - **PARAM_DAMPING** = **6** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set damping properties.
  194. - **PARAM_ANGLE** = **7** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set angle properties.
  195. - **PARAM_SCALE** = **8** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set scale properties.
  196. - **PARAM_HUE_VARIATION** = **9** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set hue variation properties.
  197. - **PARAM_ANIM_SPEED** = **10** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set animation speed properties.
  198. - **PARAM_ANIM_OFFSET** = **11** --- Use with :ref:`set_param_min<class_ParticlesMaterial_method_set_param_min>`, :ref:`set_param_max<class_ParticlesMaterial_method_set_param_max>`, and :ref:`set_param_texture<class_ParticlesMaterial_method_set_param_texture>` to set animation offset properties.
  199. - **PARAM_MAX** = **12** --- Represents the size of the :ref:`Parameter<enum_ParticlesMaterial_Parameter>` enum.
  200. ----
  201. .. _enum_ParticlesMaterial_ParticleFlags:
  202. .. _class_ParticlesMaterial_constant_PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY:
  203. .. _class_ParticlesMaterial_constant_PARTICLE_FLAG_ROTATE_Y:
  204. .. _class_ParticlesMaterial_constant_PARTICLE_FLAG_DISABLE_Z:
  205. .. _class_ParticlesMaterial_constant_PARTICLE_FLAG_MAX:
  206. enum **ParticleFlags**:
  207. - **PARTICLE_FLAG_ALIGN_Y_TO_VELOCITY** = **0** --- Use with :ref:`set_particle_flag<class_ParticlesMaterial_method_set_particle_flag>` to set :ref:`particle_flag_align_y<class_ParticlesMaterial_property_particle_flag_align_y>`.
  208. - **PARTICLE_FLAG_ROTATE_Y** = **1** --- Use with :ref:`set_particle_flag<class_ParticlesMaterial_method_set_particle_flag>` to set :ref:`particle_flag_rotate_y<class_ParticlesMaterial_property_particle_flag_rotate_y>`.
  209. - **PARTICLE_FLAG_DISABLE_Z** = **2** --- Use with :ref:`set_particle_flag<class_ParticlesMaterial_method_set_particle_flag>` to set :ref:`particle_flag_disable_z<class_ParticlesMaterial_property_particle_flag_disable_z>`.
  210. - **PARTICLE_FLAG_MAX** = **3** --- Represents the size of the :ref:`ParticleFlags<enum_ParticlesMaterial_ParticleFlags>` enum.
  211. ----
  212. .. _enum_ParticlesMaterial_EmissionShape:
  213. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_POINT:
  214. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_SPHERE:
  215. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_SPHERE_SURFACE:
  216. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_BOX:
  217. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_POINTS:
  218. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_DIRECTED_POINTS:
  219. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_RING:
  220. .. _class_ParticlesMaterial_constant_EMISSION_SHAPE_MAX:
  221. enum **EmissionShape**:
  222. - **EMISSION_SHAPE_POINT** = **0** --- All particles will be emitted from a single point.
  223. - **EMISSION_SHAPE_SPHERE** = **1** --- Particles will be emitted in the volume of a sphere.
  224. - **EMISSION_SHAPE_SPHERE_SURFACE** = **2** --- Particles will be emitted on the surface of a sphere.
  225. - **EMISSION_SHAPE_BOX** = **3** --- Particles will be emitted in the volume of a box.
  226. - **EMISSION_SHAPE_POINTS** = **4** --- Particles will be emitted at a position determined by sampling a random point on the :ref:`emission_point_texture<class_ParticlesMaterial_property_emission_point_texture>`. Particle color will be modulated by :ref:`emission_color_texture<class_ParticlesMaterial_property_emission_color_texture>`.
  227. - **EMISSION_SHAPE_DIRECTED_POINTS** = **5** --- Particles will be emitted at a position determined by sampling a random point on the :ref:`emission_point_texture<class_ParticlesMaterial_property_emission_point_texture>`. Particle velocity and rotation will be set based on :ref:`emission_normal_texture<class_ParticlesMaterial_property_emission_normal_texture>`. Particle color will be modulated by :ref:`emission_color_texture<class_ParticlesMaterial_property_emission_color_texture>`.
  228. - **EMISSION_SHAPE_RING** = **6** --- Particles will be emitted in a ring or cylinder.
  229. - **EMISSION_SHAPE_MAX** = **7** --- Represents the size of the :ref:`EmissionShape<enum_ParticlesMaterial_EmissionShape>` enum.
  230. ----
  231. .. _enum_ParticlesMaterial_SubEmitterMode:
  232. .. _class_ParticlesMaterial_constant_SUB_EMITTER_DISABLED:
  233. .. _class_ParticlesMaterial_constant_SUB_EMITTER_CONSTANT:
  234. .. _class_ParticlesMaterial_constant_SUB_EMITTER_AT_END:
  235. .. _class_ParticlesMaterial_constant_SUB_EMITTER_AT_COLLISION:
  236. .. _class_ParticlesMaterial_constant_SUB_EMITTER_MAX:
  237. enum **SubEmitterMode**:
  238. - **SUB_EMITTER_DISABLED** = **0**
  239. - **SUB_EMITTER_CONSTANT** = **1**
  240. - **SUB_EMITTER_AT_END** = **2**
  241. - **SUB_EMITTER_AT_COLLISION** = **3**
  242. - **SUB_EMITTER_MAX** = **4**
  243. Property Descriptions
  244. ---------------------
  245. .. _class_ParticlesMaterial_property_angle_curve:
  246. - :ref:`Texture2D<class_Texture2D>` **angle_curve**
  247. +----------+--------------------------+
  248. | *Setter* | set_param_texture(value) |
  249. +----------+--------------------------+
  250. | *Getter* | get_param_texture() |
  251. +----------+--------------------------+
  252. Each particle's rotation will be animated along this :ref:`CurveTexture<class_CurveTexture>`.
  253. ----
  254. .. _class_ParticlesMaterial_property_angle_max:
  255. - :ref:`float<class_float>` **angle_max**
  256. +-----------+----------------------+
  257. | *Default* | ``0.0`` |
  258. +-----------+----------------------+
  259. | *Setter* | set_param_max(value) |
  260. +-----------+----------------------+
  261. | *Getter* | get_param_max() |
  262. +-----------+----------------------+
  263. Maximum initial rotation applied to each particle, in degrees.
  264. Only applied when :ref:`particle_flag_disable_z<class_ParticlesMaterial_property_particle_flag_disable_z>` or :ref:`particle_flag_rotate_y<class_ParticlesMaterial_property_particle_flag_rotate_y>` are ``true`` or the :ref:`BaseMaterial3D<class_BaseMaterial3D>` being used to draw the particle is using :ref:`BaseMaterial3D.BILLBOARD_PARTICLES<class_BaseMaterial3D_constant_BILLBOARD_PARTICLES>`.
  265. ----
  266. .. _class_ParticlesMaterial_property_angle_min:
  267. - :ref:`float<class_float>` **angle_min**
  268. +-----------+----------------------+
  269. | *Default* | ``0.0`` |
  270. +-----------+----------------------+
  271. | *Setter* | set_param_min(value) |
  272. +-----------+----------------------+
  273. | *Getter* | get_param_min() |
  274. +-----------+----------------------+
  275. Minimum equivalent of :ref:`angle_max<class_ParticlesMaterial_property_angle_max>`.
  276. ----
  277. .. _class_ParticlesMaterial_property_angular_velocity_curve:
  278. - :ref:`Texture2D<class_Texture2D>` **angular_velocity_curve**
  279. +----------+--------------------------+
  280. | *Setter* | set_param_texture(value) |
  281. +----------+--------------------------+
  282. | *Getter* | get_param_texture() |
  283. +----------+--------------------------+
  284. Each particle's angular velocity (rotation speed) will vary along this :ref:`CurveTexture<class_CurveTexture>` over its lifetime.
  285. ----
  286. .. _class_ParticlesMaterial_property_angular_velocity_max:
  287. - :ref:`float<class_float>` **angular_velocity_max**
  288. +-----------+----------------------+
  289. | *Default* | ``0.0`` |
  290. +-----------+----------------------+
  291. | *Setter* | set_param_max(value) |
  292. +-----------+----------------------+
  293. | *Getter* | get_param_max() |
  294. +-----------+----------------------+
  295. Maximum initial angular velocity (rotation speed) applied to each particle in *degrees* per second.
  296. Only applied when :ref:`particle_flag_disable_z<class_ParticlesMaterial_property_particle_flag_disable_z>` or :ref:`particle_flag_rotate_y<class_ParticlesMaterial_property_particle_flag_rotate_y>` are ``true`` or the :ref:`BaseMaterial3D<class_BaseMaterial3D>` being used to draw the particle is using :ref:`BaseMaterial3D.BILLBOARD_PARTICLES<class_BaseMaterial3D_constant_BILLBOARD_PARTICLES>`.
  297. ----
  298. .. _class_ParticlesMaterial_property_angular_velocity_min:
  299. - :ref:`float<class_float>` **angular_velocity_min**
  300. +-----------+----------------------+
  301. | *Default* | ``0.0`` |
  302. +-----------+----------------------+
  303. | *Setter* | set_param_min(value) |
  304. +-----------+----------------------+
  305. | *Getter* | get_param_min() |
  306. +-----------+----------------------+
  307. Minimum equivalent of :ref:`angular_velocity_max<class_ParticlesMaterial_property_angular_velocity_max>`.
  308. ----
  309. .. _class_ParticlesMaterial_property_anim_offset_curve:
  310. - :ref:`Texture2D<class_Texture2D>` **anim_offset_curve**
  311. +----------+--------------------------+
  312. | *Setter* | set_param_texture(value) |
  313. +----------+--------------------------+
  314. | *Getter* | get_param_texture() |
  315. +----------+--------------------------+
  316. Each particle's animation offset will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  317. ----
  318. .. _class_ParticlesMaterial_property_anim_offset_max:
  319. - :ref:`float<class_float>` **anim_offset_max**
  320. +-----------+----------------------+
  321. | *Default* | ``0.0`` |
  322. +-----------+----------------------+
  323. | *Setter* | set_param_max(value) |
  324. +-----------+----------------------+
  325. | *Getter* | get_param_max() |
  326. +-----------+----------------------+
  327. 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>`.
  328. ----
  329. .. _class_ParticlesMaterial_property_anim_offset_min:
  330. - :ref:`float<class_float>` **anim_offset_min**
  331. +-----------+----------------------+
  332. | *Default* | ``0.0`` |
  333. +-----------+----------------------+
  334. | *Setter* | set_param_min(value) |
  335. +-----------+----------------------+
  336. | *Getter* | get_param_min() |
  337. +-----------+----------------------+
  338. Minimum equivalent of :ref:`anim_offset_max<class_ParticlesMaterial_property_anim_offset_max>`.
  339. ----
  340. .. _class_ParticlesMaterial_property_anim_speed_curve:
  341. - :ref:`Texture2D<class_Texture2D>` **anim_speed_curve**
  342. +----------+--------------------------+
  343. | *Setter* | set_param_texture(value) |
  344. +----------+--------------------------+
  345. | *Getter* | get_param_texture() |
  346. +----------+--------------------------+
  347. Each particle's animation speed will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  348. ----
  349. .. _class_ParticlesMaterial_property_anim_speed_max:
  350. - :ref:`float<class_float>` **anim_speed_max**
  351. +-----------+----------------------+
  352. | *Default* | ``0.0`` |
  353. +-----------+----------------------+
  354. | *Setter* | set_param_max(value) |
  355. +-----------+----------------------+
  356. | *Getter* | get_param_max() |
  357. +-----------+----------------------+
  358. 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.
  359. 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.
  360. ----
  361. .. _class_ParticlesMaterial_property_anim_speed_min:
  362. - :ref:`float<class_float>` **anim_speed_min**
  363. +-----------+----------------------+
  364. | *Default* | ``0.0`` |
  365. +-----------+----------------------+
  366. | *Setter* | set_param_min(value) |
  367. +-----------+----------------------+
  368. | *Getter* | get_param_min() |
  369. +-----------+----------------------+
  370. Minimum equivalent of :ref:`anim_speed_max<class_ParticlesMaterial_property_anim_speed_max>`.
  371. ----
  372. .. _class_ParticlesMaterial_property_attractor_interaction_enabled:
  373. - :ref:`bool<class_bool>` **attractor_interaction_enabled**
  374. +-----------+------------------------------------------+
  375. | *Default* | ``true`` |
  376. +-----------+------------------------------------------+
  377. | *Setter* | set_attractor_interaction_enabled(value) |
  378. +-----------+------------------------------------------+
  379. | *Getter* | is_attractor_interaction_enabled() |
  380. +-----------+------------------------------------------+
  381. True if the interaction with particle attractors is enabled.
  382. ----
  383. .. _class_ParticlesMaterial_property_collision_bounce:
  384. - :ref:`float<class_float>` **collision_bounce**
  385. +-----------+-----------------------------+
  386. | *Default* | ``0.0`` |
  387. +-----------+-----------------------------+
  388. | *Setter* | set_collision_bounce(value) |
  389. +-----------+-----------------------------+
  390. | *Getter* | get_collision_bounce() |
  391. +-----------+-----------------------------+
  392. Collision bounciness.
  393. ----
  394. .. _class_ParticlesMaterial_property_collision_enabled:
  395. - :ref:`bool<class_bool>` **collision_enabled**
  396. +-----------+------------------------------+
  397. | *Default* | ``false`` |
  398. +-----------+------------------------------+
  399. | *Setter* | set_collision_enabled(value) |
  400. +-----------+------------------------------+
  401. | *Getter* | is_collision_enabled() |
  402. +-----------+------------------------------+
  403. True if collisions are enabled for this particle system.
  404. ----
  405. .. _class_ParticlesMaterial_property_collision_friction:
  406. - :ref:`float<class_float>` **collision_friction**
  407. +-----------+-------------------------------+
  408. | *Default* | ``0.0`` |
  409. +-----------+-------------------------------+
  410. | *Setter* | set_collision_friction(value) |
  411. +-----------+-------------------------------+
  412. | *Getter* | get_collision_friction() |
  413. +-----------+-------------------------------+
  414. Collision friction.
  415. ----
  416. .. _class_ParticlesMaterial_property_collision_use_scale:
  417. - :ref:`bool<class_bool>` **collision_use_scale**
  418. +-----------+--------------------------------+
  419. | *Default* | ``false`` |
  420. +-----------+--------------------------------+
  421. | *Setter* | set_collision_use_scale(value) |
  422. +-----------+--------------------------------+
  423. | *Getter* | is_collision_using_scale() |
  424. +-----------+--------------------------------+
  425. Should collision take scale into account.
  426. ----
  427. .. _class_ParticlesMaterial_property_color:
  428. - :ref:`Color<class_Color>` **color**
  429. +-----------+-----------------------+
  430. | *Default* | ``Color(1, 1, 1, 1)`` |
  431. +-----------+-----------------------+
  432. | *Setter* | set_color(value) |
  433. +-----------+-----------------------+
  434. | *Getter* | get_color() |
  435. +-----------+-----------------------+
  436. Each particle's initial color. If the :ref:`GPUParticles2D<class_GPUParticles2D>`'s ``texture`` is defined, it will be multiplied by this color. To have particle display color in a :ref:`BaseMaterial3D<class_BaseMaterial3D>` make sure to set :ref:`BaseMaterial3D.vertex_color_use_as_albedo<class_BaseMaterial3D_property_vertex_color_use_as_albedo>` to ``true``.
  437. ----
  438. .. _class_ParticlesMaterial_property_color_initial_ramp:
  439. - :ref:`Texture2D<class_Texture2D>` **color_initial_ramp**
  440. +----------+-------------------------------+
  441. | *Setter* | set_color_initial_ramp(value) |
  442. +----------+-------------------------------+
  443. | *Getter* | get_color_initial_ramp() |
  444. +----------+-------------------------------+
  445. Each particle's initial color will vary along this :ref:`GradientTexture1D<class_GradientTexture1D>` (multiplied with :ref:`color<class_ParticlesMaterial_property_color>`).
  446. ----
  447. .. _class_ParticlesMaterial_property_color_ramp:
  448. - :ref:`Texture2D<class_Texture2D>` **color_ramp**
  449. +----------+-----------------------+
  450. | *Setter* | set_color_ramp(value) |
  451. +----------+-----------------------+
  452. | *Getter* | get_color_ramp() |
  453. +----------+-----------------------+
  454. Each particle's color will vary along this :ref:`GradientTexture1D<class_GradientTexture1D>` over its lifetime (multiplied with :ref:`color<class_ParticlesMaterial_property_color>`).
  455. ----
  456. .. _class_ParticlesMaterial_property_damping_curve:
  457. - :ref:`Texture2D<class_Texture2D>` **damping_curve**
  458. +----------+--------------------------+
  459. | *Setter* | set_param_texture(value) |
  460. +----------+--------------------------+
  461. | *Getter* | get_param_texture() |
  462. +----------+--------------------------+
  463. Damping will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  464. ----
  465. .. _class_ParticlesMaterial_property_damping_max:
  466. - :ref:`float<class_float>` **damping_max**
  467. +-----------+----------------------+
  468. | *Default* | ``0.0`` |
  469. +-----------+----------------------+
  470. | *Setter* | set_param_max(value) |
  471. +-----------+----------------------+
  472. | *Getter* | get_param_max() |
  473. +-----------+----------------------+
  474. 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.
  475. ----
  476. .. _class_ParticlesMaterial_property_damping_min:
  477. - :ref:`float<class_float>` **damping_min**
  478. +-----------+----------------------+
  479. | *Default* | ``0.0`` |
  480. +-----------+----------------------+
  481. | *Setter* | set_param_min(value) |
  482. +-----------+----------------------+
  483. | *Getter* | get_param_min() |
  484. +-----------+----------------------+
  485. Minimum equivalent of :ref:`damping_max<class_ParticlesMaterial_property_damping_max>`.
  486. ----
  487. .. _class_ParticlesMaterial_property_direction:
  488. - :ref:`Vector3<class_Vector3>` **direction**
  489. +-----------+----------------------+
  490. | *Default* | ``Vector3(1, 0, 0)`` |
  491. +-----------+----------------------+
  492. | *Setter* | set_direction(value) |
  493. +-----------+----------------------+
  494. | *Getter* | get_direction() |
  495. +-----------+----------------------+
  496. Unit vector specifying the particles' emission direction.
  497. ----
  498. .. _class_ParticlesMaterial_property_emission_box_extents:
  499. - :ref:`Vector3<class_Vector3>` **emission_box_extents**
  500. +----------+---------------------------------+
  501. | *Setter* | set_emission_box_extents(value) |
  502. +----------+---------------------------------+
  503. | *Getter* | get_emission_box_extents() |
  504. +----------+---------------------------------+
  505. The box's extents if ``emission_shape`` is set to :ref:`EMISSION_SHAPE_BOX<class_ParticlesMaterial_constant_EMISSION_SHAPE_BOX>`.
  506. ----
  507. .. _class_ParticlesMaterial_property_emission_color_texture:
  508. - :ref:`Texture2D<class_Texture2D>` **emission_color_texture**
  509. +----------+-----------------------------------+
  510. | *Setter* | set_emission_color_texture(value) |
  511. +----------+-----------------------------------+
  512. | *Getter* | get_emission_color_texture() |
  513. +----------+-----------------------------------+
  514. Particle color will be modulated by color determined by sampling this texture at the same point as the :ref:`emission_point_texture<class_ParticlesMaterial_property_emission_point_texture>`.
  515. ----
  516. .. _class_ParticlesMaterial_property_emission_normal_texture:
  517. - :ref:`Texture2D<class_Texture2D>` **emission_normal_texture**
  518. +----------+------------------------------------+
  519. | *Setter* | set_emission_normal_texture(value) |
  520. +----------+------------------------------------+
  521. | *Getter* | get_emission_normal_texture() |
  522. +----------+------------------------------------+
  523. Particle velocity and rotation will be set by sampling this texture at the same point as the :ref:`emission_point_texture<class_ParticlesMaterial_property_emission_point_texture>`. Used only in :ref:`EMISSION_SHAPE_DIRECTED_POINTS<class_ParticlesMaterial_constant_EMISSION_SHAPE_DIRECTED_POINTS>`. Can be created automatically from mesh or node by selecting "Create Emission Points from Mesh/Node" under the "Particles" tool in the toolbar.
  524. ----
  525. .. _class_ParticlesMaterial_property_emission_point_count:
  526. - :ref:`int<class_int>` **emission_point_count**
  527. +----------+---------------------------------+
  528. | *Setter* | set_emission_point_count(value) |
  529. +----------+---------------------------------+
  530. | *Getter* | get_emission_point_count() |
  531. +----------+---------------------------------+
  532. The number of emission points if ``emission_shape`` is set to :ref:`EMISSION_SHAPE_POINTS<class_ParticlesMaterial_constant_EMISSION_SHAPE_POINTS>` or :ref:`EMISSION_SHAPE_DIRECTED_POINTS<class_ParticlesMaterial_constant_EMISSION_SHAPE_DIRECTED_POINTS>`.
  533. ----
  534. .. _class_ParticlesMaterial_property_emission_point_texture:
  535. - :ref:`Texture2D<class_Texture2D>` **emission_point_texture**
  536. +----------+-----------------------------------+
  537. | *Setter* | set_emission_point_texture(value) |
  538. +----------+-----------------------------------+
  539. | *Getter* | get_emission_point_texture() |
  540. +----------+-----------------------------------+
  541. Particles will be emitted at positions determined by sampling this texture at a random position. Used with :ref:`EMISSION_SHAPE_POINTS<class_ParticlesMaterial_constant_EMISSION_SHAPE_POINTS>` and :ref:`EMISSION_SHAPE_DIRECTED_POINTS<class_ParticlesMaterial_constant_EMISSION_SHAPE_DIRECTED_POINTS>`. Can be created automatically from mesh or node by selecting "Create Emission Points from Mesh/Node" under the "Particles" tool in the toolbar.
  542. ----
  543. .. _class_ParticlesMaterial_property_emission_ring_axis:
  544. - :ref:`Vector3<class_Vector3>` **emission_ring_axis**
  545. +----------+-------------------------------+
  546. | *Setter* | set_emission_ring_axis(value) |
  547. +----------+-------------------------------+
  548. | *Getter* | get_emission_ring_axis() |
  549. +----------+-------------------------------+
  550. The axis of the ring when using the emitter :ref:`EMISSION_SHAPE_RING<class_ParticlesMaterial_constant_EMISSION_SHAPE_RING>`.
  551. ----
  552. .. _class_ParticlesMaterial_property_emission_ring_height:
  553. - :ref:`float<class_float>` **emission_ring_height**
  554. +----------+---------------------------------+
  555. | *Setter* | set_emission_ring_height(value) |
  556. +----------+---------------------------------+
  557. | *Getter* | get_emission_ring_height() |
  558. +----------+---------------------------------+
  559. The height of the ring when using the emitter :ref:`EMISSION_SHAPE_RING<class_ParticlesMaterial_constant_EMISSION_SHAPE_RING>`.
  560. ----
  561. .. _class_ParticlesMaterial_property_emission_ring_inner_radius:
  562. - :ref:`float<class_float>` **emission_ring_inner_radius**
  563. +----------+---------------------------------------+
  564. | *Setter* | set_emission_ring_inner_radius(value) |
  565. +----------+---------------------------------------+
  566. | *Getter* | get_emission_ring_inner_radius() |
  567. +----------+---------------------------------------+
  568. The inner radius of the ring when using the emitter :ref:`EMISSION_SHAPE_RING<class_ParticlesMaterial_constant_EMISSION_SHAPE_RING>`.
  569. ----
  570. .. _class_ParticlesMaterial_property_emission_ring_radius:
  571. - :ref:`float<class_float>` **emission_ring_radius**
  572. +----------+---------------------------------+
  573. | *Setter* | set_emission_ring_radius(value) |
  574. +----------+---------------------------------+
  575. | *Getter* | get_emission_ring_radius() |
  576. +----------+---------------------------------+
  577. The radius of the ring when using the emitter :ref:`EMISSION_SHAPE_RING<class_ParticlesMaterial_constant_EMISSION_SHAPE_RING>`.
  578. ----
  579. .. _class_ParticlesMaterial_property_emission_shape:
  580. - :ref:`EmissionShape<enum_ParticlesMaterial_EmissionShape>` **emission_shape**
  581. +-----------+---------------------------+
  582. | *Default* | ``0`` |
  583. +-----------+---------------------------+
  584. | *Setter* | set_emission_shape(value) |
  585. +-----------+---------------------------+
  586. | *Getter* | get_emission_shape() |
  587. +-----------+---------------------------+
  588. Particles will be emitted inside this region. Use :ref:`EmissionShape<enum_ParticlesMaterial_EmissionShape>` constants for values.
  589. ----
  590. .. _class_ParticlesMaterial_property_emission_sphere_radius:
  591. - :ref:`float<class_float>` **emission_sphere_radius**
  592. +----------+-----------------------------------+
  593. | *Setter* | set_emission_sphere_radius(value) |
  594. +----------+-----------------------------------+
  595. | *Getter* | get_emission_sphere_radius() |
  596. +----------+-----------------------------------+
  597. The sphere's radius if ``emission_shape`` is set to :ref:`EMISSION_SHAPE_SPHERE<class_ParticlesMaterial_constant_EMISSION_SHAPE_SPHERE>`.
  598. ----
  599. .. _class_ParticlesMaterial_property_flatness:
  600. - :ref:`float<class_float>` **flatness**
  601. +-----------+---------------------+
  602. | *Default* | ``0.0`` |
  603. +-----------+---------------------+
  604. | *Setter* | set_flatness(value) |
  605. +-----------+---------------------+
  606. | *Getter* | get_flatness() |
  607. +-----------+---------------------+
  608. Amount of :ref:`spread<class_ParticlesMaterial_property_spread>` along the Y axis.
  609. ----
  610. .. _class_ParticlesMaterial_property_gravity:
  611. - :ref:`Vector3<class_Vector3>` **gravity**
  612. +-----------+-------------------------+
  613. | *Default* | ``Vector3(0, -9.8, 0)`` |
  614. +-----------+-------------------------+
  615. | *Setter* | set_gravity(value) |
  616. +-----------+-------------------------+
  617. | *Getter* | get_gravity() |
  618. +-----------+-------------------------+
  619. Gravity applied to every particle.
  620. ----
  621. .. _class_ParticlesMaterial_property_hue_variation_curve:
  622. - :ref:`Texture2D<class_Texture2D>` **hue_variation_curve**
  623. +----------+--------------------------+
  624. | *Setter* | set_param_texture(value) |
  625. +----------+--------------------------+
  626. | *Getter* | get_param_texture() |
  627. +----------+--------------------------+
  628. Each particle's hue will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  629. ----
  630. .. _class_ParticlesMaterial_property_hue_variation_max:
  631. - :ref:`float<class_float>` **hue_variation_max**
  632. +-----------+----------------------+
  633. | *Default* | ``0.0`` |
  634. +-----------+----------------------+
  635. | *Setter* | set_param_max(value) |
  636. +-----------+----------------------+
  637. | *Getter* | get_param_max() |
  638. +-----------+----------------------+
  639. Maximum initial hue variation applied to each particle. It will shift the particle color's hue.
  640. ----
  641. .. _class_ParticlesMaterial_property_hue_variation_min:
  642. - :ref:`float<class_float>` **hue_variation_min**
  643. +-----------+----------------------+
  644. | *Default* | ``0.0`` |
  645. +-----------+----------------------+
  646. | *Setter* | set_param_min(value) |
  647. +-----------+----------------------+
  648. | *Getter* | get_param_min() |
  649. +-----------+----------------------+
  650. Minimum equivalent of :ref:`hue_variation_max<class_ParticlesMaterial_property_hue_variation_max>`.
  651. ----
  652. .. _class_ParticlesMaterial_property_initial_velocity_max:
  653. - :ref:`float<class_float>` **initial_velocity_max**
  654. +-----------+----------------------+
  655. | *Default* | ``0.0`` |
  656. +-----------+----------------------+
  657. | *Setter* | set_param_max(value) |
  658. +-----------+----------------------+
  659. | *Getter* | get_param_max() |
  660. +-----------+----------------------+
  661. Maximum initial velocity magnitude for each particle. Direction comes from :ref:`direction<class_ParticlesMaterial_property_direction>` and :ref:`spread<class_ParticlesMaterial_property_spread>`.
  662. ----
  663. .. _class_ParticlesMaterial_property_initial_velocity_min:
  664. - :ref:`float<class_float>` **initial_velocity_min**
  665. +-----------+----------------------+
  666. | *Default* | ``0.0`` |
  667. +-----------+----------------------+
  668. | *Setter* | set_param_min(value) |
  669. +-----------+----------------------+
  670. | *Getter* | get_param_min() |
  671. +-----------+----------------------+
  672. Minimum equivalent of :ref:`initial_velocity_max<class_ParticlesMaterial_property_initial_velocity_max>`.
  673. ----
  674. .. _class_ParticlesMaterial_property_lifetime_randomness:
  675. - :ref:`float<class_float>` **lifetime_randomness**
  676. +-----------+--------------------------------+
  677. | *Default* | ``0.0`` |
  678. +-----------+--------------------------------+
  679. | *Setter* | set_lifetime_randomness(value) |
  680. +-----------+--------------------------------+
  681. | *Getter* | get_lifetime_randomness() |
  682. +-----------+--------------------------------+
  683. Particle lifetime randomness ratio. The lifetime will be multiplied by a value interpolated between ``1.0`` and a random number less than one. For example a random ratio of ``0.4`` would scale the original lifetime between ``0.4-1.0`` of its original value.
  684. ----
  685. .. _class_ParticlesMaterial_property_linear_accel_curve:
  686. - :ref:`Texture2D<class_Texture2D>` **linear_accel_curve**
  687. +----------+--------------------------+
  688. | *Setter* | set_param_texture(value) |
  689. +----------+--------------------------+
  690. | *Getter* | get_param_texture() |
  691. +----------+--------------------------+
  692. Each particle's linear acceleration will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  693. ----
  694. .. _class_ParticlesMaterial_property_linear_accel_max:
  695. - :ref:`float<class_float>` **linear_accel_max**
  696. +-----------+----------------------+
  697. | *Default* | ``0.0`` |
  698. +-----------+----------------------+
  699. | *Setter* | set_param_max(value) |
  700. +-----------+----------------------+
  701. | *Getter* | get_param_max() |
  702. +-----------+----------------------+
  703. Maximum linear acceleration applied to each particle in the direction of motion.
  704. ----
  705. .. _class_ParticlesMaterial_property_linear_accel_min:
  706. - :ref:`float<class_float>` **linear_accel_min**
  707. +-----------+----------------------+
  708. | *Default* | ``0.0`` |
  709. +-----------+----------------------+
  710. | *Setter* | set_param_min(value) |
  711. +-----------+----------------------+
  712. | *Getter* | get_param_min() |
  713. +-----------+----------------------+
  714. Minimum equivalent of :ref:`linear_accel_min<class_ParticlesMaterial_property_linear_accel_min>`.
  715. ----
  716. .. _class_ParticlesMaterial_property_orbit_velocity_curve:
  717. - :ref:`Texture2D<class_Texture2D>` **orbit_velocity_curve**
  718. +----------+--------------------------+
  719. | *Setter* | set_param_texture(value) |
  720. +----------+--------------------------+
  721. | *Getter* | get_param_texture() |
  722. +----------+--------------------------+
  723. Each particle's orbital velocity will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  724. ----
  725. .. _class_ParticlesMaterial_property_orbit_velocity_max:
  726. - :ref:`float<class_float>` **orbit_velocity_max**
  727. +----------+----------------------+
  728. | *Setter* | set_param_max(value) |
  729. +----------+----------------------+
  730. | *Getter* | get_param_max() |
  731. +----------+----------------------+
  732. Maximum orbital velocity applied to each particle. Makes the particles circle around origin. Specified in number of full rotations around origin per second.
  733. Only available when :ref:`particle_flag_disable_z<class_ParticlesMaterial_property_particle_flag_disable_z>` is ``true``.
  734. ----
  735. .. _class_ParticlesMaterial_property_orbit_velocity_min:
  736. - :ref:`float<class_float>` **orbit_velocity_min**
  737. +----------+----------------------+
  738. | *Setter* | set_param_min(value) |
  739. +----------+----------------------+
  740. | *Getter* | get_param_min() |
  741. +----------+----------------------+
  742. Minimum equivalent of :ref:`orbit_velocity_max<class_ParticlesMaterial_property_orbit_velocity_max>`.
  743. ----
  744. .. _class_ParticlesMaterial_property_particle_flag_align_y:
  745. - :ref:`bool<class_bool>` **particle_flag_align_y**
  746. +-----------+--------------------------+
  747. | *Default* | ``false`` |
  748. +-----------+--------------------------+
  749. | *Setter* | set_particle_flag(value) |
  750. +-----------+--------------------------+
  751. | *Getter* | get_particle_flag() |
  752. +-----------+--------------------------+
  753. Align Y axis of particle with the direction of its velocity.
  754. ----
  755. .. _class_ParticlesMaterial_property_particle_flag_disable_z:
  756. - :ref:`bool<class_bool>` **particle_flag_disable_z**
  757. +-----------+--------------------------+
  758. | *Default* | ``false`` |
  759. +-----------+--------------------------+
  760. | *Setter* | set_particle_flag(value) |
  761. +-----------+--------------------------+
  762. | *Getter* | get_particle_flag() |
  763. +-----------+--------------------------+
  764. If ``true``, particles will not move on the z axis.
  765. ----
  766. .. _class_ParticlesMaterial_property_particle_flag_rotate_y:
  767. - :ref:`bool<class_bool>` **particle_flag_rotate_y**
  768. +-----------+--------------------------+
  769. | *Default* | ``false`` |
  770. +-----------+--------------------------+
  771. | *Setter* | set_particle_flag(value) |
  772. +-----------+--------------------------+
  773. | *Getter* | get_particle_flag() |
  774. +-----------+--------------------------+
  775. If ``true``, particles rotate around Y axis by :ref:`angle_min<class_ParticlesMaterial_property_angle_min>`.
  776. ----
  777. .. _class_ParticlesMaterial_property_radial_accel_curve:
  778. - :ref:`Texture2D<class_Texture2D>` **radial_accel_curve**
  779. +----------+--------------------------+
  780. | *Setter* | set_param_texture(value) |
  781. +----------+--------------------------+
  782. | *Getter* | get_param_texture() |
  783. +----------+--------------------------+
  784. Each particle's radial acceleration will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  785. ----
  786. .. _class_ParticlesMaterial_property_radial_accel_max:
  787. - :ref:`float<class_float>` **radial_accel_max**
  788. +-----------+----------------------+
  789. | *Default* | ``0.0`` |
  790. +-----------+----------------------+
  791. | *Setter* | set_param_max(value) |
  792. +-----------+----------------------+
  793. | *Getter* | get_param_max() |
  794. +-----------+----------------------+
  795. Maximum radial acceleration applied to each particle. Makes particle accelerate away from the origin or towards it if negative.
  796. ----
  797. .. _class_ParticlesMaterial_property_radial_accel_min:
  798. - :ref:`float<class_float>` **radial_accel_min**
  799. +-----------+----------------------+
  800. | *Default* | ``0.0`` |
  801. +-----------+----------------------+
  802. | *Setter* | set_param_min(value) |
  803. +-----------+----------------------+
  804. | *Getter* | get_param_min() |
  805. +-----------+----------------------+
  806. Minimum equivalent of :ref:`radial_accel_max<class_ParticlesMaterial_property_radial_accel_max>`.
  807. ----
  808. .. _class_ParticlesMaterial_property_scale_curve:
  809. - :ref:`Texture2D<class_Texture2D>` **scale_curve**
  810. +----------+--------------------------+
  811. | *Setter* | set_param_texture(value) |
  812. +----------+--------------------------+
  813. | *Getter* | get_param_texture() |
  814. +----------+--------------------------+
  815. Each particle's scale will vary along this :ref:`CurveTexture<class_CurveTexture>`. If a :ref:`CurveXYZTexture<class_CurveXYZTexture>` is supplied instead, the scale will be separated per-axis.
  816. ----
  817. .. _class_ParticlesMaterial_property_scale_max:
  818. - :ref:`float<class_float>` **scale_max**
  819. +-----------+----------------------+
  820. | *Default* | ``1.0`` |
  821. +-----------+----------------------+
  822. | *Setter* | set_param_max(value) |
  823. +-----------+----------------------+
  824. | *Getter* | get_param_max() |
  825. +-----------+----------------------+
  826. Maximum initial scale applied to each particle.
  827. ----
  828. .. _class_ParticlesMaterial_property_scale_min:
  829. - :ref:`float<class_float>` **scale_min**
  830. +-----------+----------------------+
  831. | *Default* | ``1.0`` |
  832. +-----------+----------------------+
  833. | *Setter* | set_param_min(value) |
  834. +-----------+----------------------+
  835. | *Getter* | get_param_min() |
  836. +-----------+----------------------+
  837. Minimum equivalent of :ref:`scale_max<class_ParticlesMaterial_property_scale_max>`.
  838. ----
  839. .. _class_ParticlesMaterial_property_spread:
  840. - :ref:`float<class_float>` **spread**
  841. +-----------+-------------------+
  842. | *Default* | ``45.0`` |
  843. +-----------+-------------------+
  844. | *Setter* | set_spread(value) |
  845. +-----------+-------------------+
  846. | *Getter* | get_spread() |
  847. +-----------+-------------------+
  848. Each particle's initial direction range from ``+spread`` to ``-spread`` degrees.
  849. ----
  850. .. _class_ParticlesMaterial_property_sub_emitter_amount_at_end:
  851. - :ref:`int<class_int>` **sub_emitter_amount_at_end**
  852. +----------+--------------------------------------+
  853. | *Setter* | set_sub_emitter_amount_at_end(value) |
  854. +----------+--------------------------------------+
  855. | *Getter* | get_sub_emitter_amount_at_end() |
  856. +----------+--------------------------------------+
  857. ----
  858. .. _class_ParticlesMaterial_property_sub_emitter_frequency:
  859. - :ref:`float<class_float>` **sub_emitter_frequency**
  860. +----------+----------------------------------+
  861. | *Setter* | set_sub_emitter_frequency(value) |
  862. +----------+----------------------------------+
  863. | *Getter* | get_sub_emitter_frequency() |
  864. +----------+----------------------------------+
  865. ----
  866. .. _class_ParticlesMaterial_property_sub_emitter_keep_velocity:
  867. - :ref:`bool<class_bool>` **sub_emitter_keep_velocity**
  868. +-----------+--------------------------------------+
  869. | *Default* | ``false`` |
  870. +-----------+--------------------------------------+
  871. | *Setter* | set_sub_emitter_keep_velocity(value) |
  872. +-----------+--------------------------------------+
  873. | *Getter* | get_sub_emitter_keep_velocity() |
  874. +-----------+--------------------------------------+
  875. ----
  876. .. _class_ParticlesMaterial_property_sub_emitter_mode:
  877. - :ref:`SubEmitterMode<enum_ParticlesMaterial_SubEmitterMode>` **sub_emitter_mode**
  878. +-----------+-----------------------------+
  879. | *Default* | ``0`` |
  880. +-----------+-----------------------------+
  881. | *Setter* | set_sub_emitter_mode(value) |
  882. +-----------+-----------------------------+
  883. | *Getter* | get_sub_emitter_mode() |
  884. +-----------+-----------------------------+
  885. ----
  886. .. _class_ParticlesMaterial_property_tangential_accel_curve:
  887. - :ref:`Texture2D<class_Texture2D>` **tangential_accel_curve**
  888. +----------+--------------------------+
  889. | *Setter* | set_param_texture(value) |
  890. +----------+--------------------------+
  891. | *Getter* | get_param_texture() |
  892. +----------+--------------------------+
  893. Each particle's tangential acceleration will vary along this :ref:`CurveTexture<class_CurveTexture>`.
  894. ----
  895. .. _class_ParticlesMaterial_property_tangential_accel_max:
  896. - :ref:`float<class_float>` **tangential_accel_max**
  897. +-----------+----------------------+
  898. | *Default* | ``0.0`` |
  899. +-----------+----------------------+
  900. | *Setter* | set_param_max(value) |
  901. +-----------+----------------------+
  902. | *Getter* | get_param_max() |
  903. +-----------+----------------------+
  904. Maximum tangential acceleration applied to each particle. Tangential acceleration is perpendicular to the particle's velocity giving the particles a swirling motion.
  905. ----
  906. .. _class_ParticlesMaterial_property_tangential_accel_min:
  907. - :ref:`float<class_float>` **tangential_accel_min**
  908. +-----------+----------------------+
  909. | *Default* | ``0.0`` |
  910. +-----------+----------------------+
  911. | *Setter* | set_param_min(value) |
  912. +-----------+----------------------+
  913. | *Getter* | get_param_min() |
  914. +-----------+----------------------+
  915. Minimum equivalent of :ref:`tangential_accel_max<class_ParticlesMaterial_property_tangential_accel_max>`.
  916. Method Descriptions
  917. -------------------
  918. .. _class_ParticlesMaterial_method_get_param_max:
  919. - :ref:`float<class_float>` **get_param_max** **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param **)** |const|
  920. Returns the maximum value range for the given parameter.
  921. ----
  922. .. _class_ParticlesMaterial_method_get_param_min:
  923. - :ref:`float<class_float>` **get_param_min** **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param **)** |const|
  924. Returns the minimum value range for the given parameter.
  925. ----
  926. .. _class_ParticlesMaterial_method_get_param_texture:
  927. - :ref:`Texture2D<class_Texture2D>` **get_param_texture** **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param **)** |const|
  928. Returns the :ref:`Texture2D<class_Texture2D>` used by the specified parameter.
  929. ----
  930. .. _class_ParticlesMaterial_method_get_particle_flag:
  931. - :ref:`bool<class_bool>` **get_particle_flag** **(** :ref:`ParticleFlags<enum_ParticlesMaterial_ParticleFlags>` particle_flag **)** |const|
  932. Returns ``true`` if the specified particle flag is enabled. See :ref:`ParticleFlags<enum_ParticlesMaterial_ParticleFlags>` for options.
  933. ----
  934. .. _class_ParticlesMaterial_method_set_param_max:
  935. - void **set_param_max** **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param, :ref:`float<class_float>` value **)**
  936. Sets the maximum value range for the given parameter.
  937. ----
  938. .. _class_ParticlesMaterial_method_set_param_min:
  939. - void **set_param_min** **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param, :ref:`float<class_float>` value **)**
  940. Sets the minimum value range for the given parameter.
  941. ----
  942. .. _class_ParticlesMaterial_method_set_param_texture:
  943. - void **set_param_texture** **(** :ref:`Parameter<enum_ParticlesMaterial_Parameter>` param, :ref:`Texture2D<class_Texture2D>` texture **)**
  944. Sets the :ref:`Texture2D<class_Texture2D>` for the specified :ref:`Parameter<enum_ParticlesMaterial_Parameter>`.
  945. ----
  946. .. _class_ParticlesMaterial_method_set_particle_flag:
  947. - void **set_particle_flag** **(** :ref:`ParticleFlags<enum_ParticlesMaterial_ParticleFlags>` particle_flag, :ref:`bool<class_bool>` enable **)**
  948. If ``true``, enables the specified particle flag. See :ref:`ParticleFlags<enum_ParticlesMaterial_ParticleFlags>` for options.
  949. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  950. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  951. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  952. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  953. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  954. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`