Skip to content

Particles life time is shortened unexpectedly #373

@PaulPandaArcade

Description

@PaulPandaArcade

Describe the bug
Particle life time is shortened for particles emitted earlier when using UIParticle.

To Reproduce
I have made a minimal project to reproduce the issue as you suggested in other bug reports. I couldn't see the option to attach a file so you can get the zip file here: https://drive.google.com/file/d/1opAt7CtQqMKjPyEc0PIeErk05rQVvzZz

Steps to reproduce the behavior:

  1. Open the SampleScene and press play.
  2. Select the ParticleTest game object (a child of the Canvas game object). It has a component called ParticleTest on it.
  3. Enable the Emit Particles bool on the ParticleTest component. Some particles will spawn and animate. When they are done they will log out the life time of each particle.

Expected behavior
I expected the particles to live for their full life time of 1 second. From the logs you can see that the particles that are emitted earlier have shorter life times. If you disable the UIParticle component and enable the Emit Particles bool again the particles are not visible but they still log out their life time data and the values are as expected with each particle living for 1 second.

Environment

  • Version: 4.11.2
  • Platform: Windows, Mac, iOS & Android.
  • Unity version: 6000.0.44f1 & 6000.1.6f1
  • Build options: Mono & IL2CPP, URP

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions