Class TextureRandomizer | Perception | 0.5.0-preview.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class TextureRandomizer

    Randomizes the material texture of objects tagged with a TextureRandomizerTag

    Inheritance
    Object
    Randomizer
    TextureRandomizer
    Inherited Members
    Randomizer.enabled
    Randomizer.scenario
    Randomizer.tagManager
    Randomizer.OnCreate()
    Randomizer.OnIterationEnd()
    Randomizer.OnScenarioComplete()
    Randomizer.OnStartRunning()
    Randomizer.OnStopRunning()
    Randomizer.OnUpdate()
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    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()
    Overrides
    Randomizer.OnIterationStart()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023