Class TextureRandomizer
Randomizes the material texture of objects tagged with a TextureRandomizerTag
Inherited Members
Namespace: UnityEngine.Experimental.Perception.Randomization.Randomizers.SampleRandomizers
Syntax
[Serializable]
[AddRandomizerMenu("Perception/Texture Randomizer")]
public class TextureRandomizer : Randomizer
Fields
texture
The list of textures to sample and apply to tagged objects
Declaration
public Texture2DParameter texture
Field Value
Type | Description |
---|---|
Texture2DParameter |
Methods
OnIterationStart()
Randomizes the material texture of tagged objects at the start of each scenario iteration
Declaration
protected override void OnIterationStart()