Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - In Unity3d particle system, how to modify the parameters uniformly when there are too many particles?
In Unity3d particle system, how to modify the parameters uniformly when there are too many particles?
Personally, I think we can try to find a class to record some key parameters, change these parameters and then change the value of the particle system through the parameters.

Common color weapencolor// The color on the sword after use.

Common color basic color; //I didn't use the color on the sword before.

game object king light weapen = game object。 find(" weave light "); //Particle system on the sword

basic loc = kinglitweapen . particle system . start color; //Save the original color

king light weapen . particle system . start color = weapen color; //Refresh color

Beginners teach themselves. This method may not be very good. If there is a good method, please tell me.

Please correct me if your opinion is inappropriate. Thank you very much.