I’ve been trying to create a rainbow effect using particles, think Nyan cat. I’m not getting the exact effect i’d like and I’m wondering what the best way to describe a rainbow in code would be. The thing that is confusing me is having three/four numbers for colour, does anyone know if I can use the Hue value to sweep across all colours with only one value?
I think sub-emitters may be what you’re looking for, this doesn’t require any coding, I don’t know if there’s a limit for how many you can add though but if you use colour over lifetime then that might enable you to get at least close to the rainbow affect you want.
Alternatively, you could also parent multiple individual particle effects to an empty and change their colours to be a rainbow, that way they’d all move in the same pattern.