- Home /
I don't understand why the particle system doesn't change color
So I have a script that changes the start color of the particle rules by the type of color was inputed via:
main.startColor = new Color(0f, 0f, 0f, 255f);
I don't understand why when I run the program the new color doesn't get selected but gets considered as a "new color".
Answer by Zoedingl · Jul 21, 2020 at 03:19 PM
Hello! While calling the Color() constructor, the max value is 1, not 255. if you have rgb values, you just need to divide them by 255 and everything will work. I had a similar problem a few months ago. I hope this helped.
Your answer
Follow this Question
Related Questions
particle effect repeat twice after collision 0 Answers
How to create a particle system like Absorb power in unity 1 Answer
Particle system ends with shuriken graphic 1 Answer
Have to switch to Scene mode for particles to start issue 1 Answer
Change color of particles by distance from emitter 2 Answers