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