mob-sakai / ParticleEffectForUGUI

Render particle effect in UnityUI(uGUI). Maskable, sortable, and no extra Camera/RenderTexture/Canvas.
MIT License
4.37k stars 620 forks source link

Additions to Particle Attractor #321

Open iMobCoding opened 3 months ago

iMobCoding commented 3 months ago

It would be nice if PA can have some randomness for Delay Rate like normal particles do: constant, between 2 constants, curve & between 2 curves. Just to break its uniformity when attracting particles...

Thanks

mob-sakai commented 3 months ago

Thank you for your reporting!

mob-sakai commented 3 months ago

For example, in the demo, I set StartLifetime=[5-8] to add randomness.

UIParticle_Demo_-_ParticleEffectForUGUI_v4_-_Windows__Mac__Linux_-_Unity_2021_3_30f1__Metal__compressed

Aug-08-2024 02-06-34_compressed

iMobCoding commented 3 months ago

Yes I know, it's one way to add randomness. But if we, for example, add the curve in the attractor, we can then join Delay, Max Speed and Movement into the one property. In one curve you set when particle starts going to the attractor, its moving speed and Ease. And adding 2 curves there would achieve randomness too. That way we can avoid my first suggestion (constant and 2 constants) as all of that could be achieved with curves

mob-sakai commented 1 month ago

Maybe using Particle.randomSeed will allow you to fix the curve for the particles.