Class ColorRandomizer
Randomizes the material color of objects tagged with a ColorRandomizerTag
Inherited Members
Namespace: UnityEngine.Experimental.Perception.Randomization.Randomizers.SampleRandomizers
Syntax
[Serializable]
[AddRandomizerMenu("Perception/Color Randomizer")]
public class ColorRandomizer : Randomizer
Fields
colorParameter
Describes the range of random colors to assign to tagged objects
Declaration
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()