Version: 5.5 (switch to 5.6b)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

ParticleSystemGradientMode.RandomColor

Description

Define a list of colors in the MinMaxGradient, to be chosen from at random.

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.