Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

set particle system start colour + random between two

//Main Particle system attached to the thruster
ParticleSystem thrusterPS = thruster.GetComponent<ParticleSystem>();
var main = thrusterPS.main;
main.startColor = new ParticleSystem.MinMaxGradient(thrusterColour1, thrusterColour2);
Source by forum.unity.com #
 
PREVIOUS NEXT
Tagged: #set #particle #system #start #colour #random
ADD COMMENT
Topic
Name
2+8 =