1 (edited by gaurangranoliya 2023-12-27 07:28:56)

Topic: Old Particles behaviour is not same as current UFE version 2.6.0

Particle System is not behaving correctly in new UFE version, something is wrong with them.
Particles are not playing when clone. Effect is not as expected.
All particles are behaving wrong as behaving in older version.
Might simulation of particle is wrong and not working correctly for all particles.
I am not able to find the issue what's wrong in new UFE scripts.

Share

Thumbs up Thumbs down

Re: Old Particles behaviour is not same as current UFE version 2.6.0

For now I need to remove this code and let auto play the particles.

ParticleSystem[] particles = goInstance.GetComponentsInChildren<ParticleSystem>(true);
            Dictionary<ParticleSystem, float> particleStorage = new Dictionary<ParticleSystem, float>();
            foreach (ParticleSystem particle in particles)
            {
                //particle.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear);
                //particle.randomSeed = (uint)creationFrame;
                particleStorage.Add(particle, particle.main.simulationSpeed);
            }

foreach (KeyValuePair<ParticleSystem, float> particleData in entry.particles)
                        {
                            var mainModule = particleData.Key.main;
                            mainModule.simulationSpeed = (float)UFE.timeScale * particleData.Value;
                            float time = (currentFrame - entry.creationFrame) / (float)UFE.fps;
                            //particleData.Key.Simulate(1, true, true, true);
                        }

Share

Thumbs up Thumbs down

Re: Old Particles behaviour is not same as current UFE version 2.6.0

I'll add an option on the next update to disable particle control options such as the random seed and speed control.

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.