Show / Hide Table of Contents

Varia Random Tint

Random Tint

Random Tint randomly colorizes objects. It supports setting any component property, or a material property.

If changing a material, please note that Unity has two different ways to it:

  • Varia can clone then change the Material itself. This is the most reliable, however it is not the best for performance and doesn't work outside of play mode.
  • Varia can use the MaterialPropertyBlock API. This is more efficient, however, not all shaders support it.

You can select between these by chosing "Material" or "Material Property Block" in the property dropdown.

Settings

Target / Property

This will automatically be set to the color property of the Renderer component. But you can set any color based property (including materials), the same way as descibred in Varia Random Value.

Hue / Saturation / Value / Alpha

These four ranges determine the actual color to set, in the same fashion as Random.ColorHSV.

When relative is true, Hue, Saturation and Value are added to the base color to determine the new value. So the UI will permit negative values. Alpha is multiplied, so negative values are not useful.

Relative

If true, then a base color is loaded, and the randomized color is used to offset the base color. The base color usually comes from object itself, but it can come from a parent by setting Relative Parent to the number of steps upwards in the Unity hierarchy to look.

In this article
Back to top Generated by DocFX