Class ColorRandomizer
Randomizes the material color of objects tagged with a ColorRandomizerTag
Inherited Members
Namespace: UnityEngine.Perception.Randomization.Randomizers
Assembly: Unity.Perception.Runtime.dll
Syntax
[Serializable]
[AddRandomizerMenu("Perception/Color Randomizer")]
[MovedFrom("UnityEngine.Perception.Randomization.Randomizers.SampleRandomizers")]
public class ColorRandomizer : Randomizer
Fields
colorParameter
The range of random colors to assign to target objects
Declaration
[Tooltip("The range of random colors to assign to target objects.")]
public ColorHsvaParameter colorParameter
Field Value
Type | Description |
---|---|
ColorHsvaParameter |
Methods
OnIterationStart()
Randomizes the colors of tagged objects at the start of each scenario iteration
Declaration
protected override void OnIterationStart()