docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Randomizer

    Derive Randomizer to implement systems that randomize GameObjects and/or simulation properties.

    Inheritance
    object
    Randomizer
    BackgroundObjectPlacementRandomizer
    ColorRandomizer
    ForegroundObjectPlacementRandomizer
    HueOffsetRandomizer
    RotationRandomizer
    SunAngleRandomizer
    TextureRandomizer
    Inherited Members
    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
    Assembly: solution.dll
    Syntax
    [Serializable]
    public abstract class Randomizer

    Properties

    Name Description
    enabled

    Enabled Randomizers are updated, disabled Randomizers are not.

    scenario

    Returns the scenario containing this Randomizer

    tagManager

    Retrieves the RandomizerTagManager of the scenario containing this Randomizer

    Methods

    Name Description
    OnCreate()

    OnCreate is called when the Randomizer is added or loaded to a scenario

    OnIterationEnd()

    OnIterationEnd is called the after a scenario iteration has completed

    OnIterationStart()

    OnIterationStart is called at the start of a new scenario iteration

    OnScenarioComplete()

    OnScenarioComplete is called the after the entire scenario has completed

    OnStartRunning()

    OnStartRunning is called on the first frame a Randomizer is enabled

    OnStopRunning()

    OnStartRunning is called on the first frame a disabled Randomizer is updated

    OnUpdate()

    OnUpdate is executed every frame for enabled Randomizers

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)