Y
Y
Yuri Kai2019-09-22 16:13:19
Unity
Yuri Kai, 2019-09-22 16:13:19

Why doesn't the Particle System want to run on the object after it's been created?

I create a meteorite object with the Particle System (PS) that flies towards the platform object, it should leave a trail (using PS) behind it all the way with the help of particles, but it does not create.
There are times when after 1 - 2 seconds it creates particles, it happens immediately, and more often it does not create particles at all.
I noticed a pattern: when creating a meteorite far from the player's camera, PS does not spawn particles, and when a meteorite spawns almost in the camera's field of view, the particles start spawning.
It is possible that because of this, particle spawning does not occur.
I tried activating the particle object when it enters the camera view but nothing changed, I also used playOnAwake on the particles and again nothing happened. But, after pressing Play in the PS panels during a pause (look at the screenshot), the spawn of particles began to play and the meteorite worked as it should.
5d87730fd5393421709835.png
Below are my PS settings:
5d87760a19b5d109840393.png
5d87761433393274642199.png
5d87761ad54b4386386433.png
How can I replicate this only through a script?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2019-09-23
@Develoder

For the sake of clarity (for those who are trying to figure it out), I would suggest that you record a video or gif of what is happening.
and also look at the Culling Mode parameter - try to set the simulation always so that it does not cut off outside the viewPort.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question