Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RandomColor

Define a list of colors in the ParticleSystem.MinMaxGradient, to be chosen from at random.
Read time 1 minuteLast updated 6 days ago

Definition

  • Type: Field
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
RandomColor = 4

Remarks

The gradient is evaluated at a random point. The color returned is uninterpolated between color keys. Each color key in the gradient effectively changes the gradient to a fixed color for values between that key and the following key.