mirror of
https://github.com/godotengine/godot.git
synced 2026-02-24 12:50:12 +00:00
Add "At Start" mode for sub-emitter particles
This commit is contained in:
@@ -346,6 +346,10 @@
|
||||
The amount of particles to spawn from the subemitter node when the particle expires.
|
||||
[b]Note:[/b] This value shouldn't exceed [member GPUParticles2D.amount] or [member GPUParticles3D.amount] defined on the [i]subemitter node[/i] (not the main node), relative to the subemitter's particle lifetime. If the number of particles is exceeded, no new particles will spawn from the subemitter until enough particles have expired.
|
||||
</member>
|
||||
<member name="sub_emitter_amount_at_start" type="int" setter="set_sub_emitter_amount_at_start" getter="get_sub_emitter_amount_at_start">
|
||||
The amount of particles to spawn from the subemitter node when the particle spawns.
|
||||
[b]Note:[/b] This value shouldn't exceed [member GPUParticles2D.amount] or [member GPUParticles3D.amount] defined on the [i]subemitter node[/i] (not the main node), relative to the subemitter's particle lifetime. If the number of particles is exceeded, no new particles will spawn from the subemitter until enough particles have expired.
|
||||
</member>
|
||||
<member name="sub_emitter_frequency" type="float" setter="set_sub_emitter_frequency" getter="get_sub_emitter_frequency">
|
||||
The frequency at which particles should be emitted from the subemitter node. One particle will be spawned every [member sub_emitter_frequency] seconds.
|
||||
[b]Note:[/b] This value shouldn't exceed [member GPUParticles2D.amount] or [member GPUParticles3D.amount] defined on the [i]subemitter node[/i] (not the main node), relative to the subemitter's particle lifetime. If the number of particles is exceeded, no new particles will spawn from the subemitter until enough particles have expired.
|
||||
@@ -514,7 +518,9 @@
|
||||
</constant>
|
||||
<constant name="SUB_EMITTER_AT_COLLISION" value="3" enum="SubEmitterMode">
|
||||
</constant>
|
||||
<constant name="SUB_EMITTER_MAX" value="4" enum="SubEmitterMode">
|
||||
<constant name="SUB_EMITTER_AT_START" value="4" enum="SubEmitterMode">
|
||||
</constant>
|
||||
<constant name="SUB_EMITTER_MAX" value="5" enum="SubEmitterMode">
|
||||
Represents the size of the [enum SubEmitterMode] enum.
|
||||
</constant>
|
||||
<constant name="COLLISION_DISABLED" value="0" enum="CollisionMode">
|
||||
|
||||
Reference in New Issue
Block a user