- Home /
Question by
Litleck · Oct 20, 2017 at 02:01 AM ·
c#particlesparticlesystem
How would I attach a float to a particle?
Hello,
Im trying to attach a temperature variable to every particle inside the particle system. I cant do custom data since that only works with vector or color so ill need some way to iterate through the particlesystem particles and attach a variable to each one. I have no idea how I would do this but someone might know.
If anyone can help ill appreciate it.
Comment
Answer by ifurkend · Oct 20, 2017 at 07:04 AM
You can't. What you can do is to create another array for storing your temperature float, matching the particle int index via GetParticles. You may not need SetParticles if no change is applied to the particles.