docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SceneRandomizer

    A randomizer which dynamically loads in scenes during a scenario run every few iterations.

    Inheritance
    object
    Randomizer
    SceneRandomizer
    Inherited Members
    Randomizer.enabled
    Randomizer.enabledStateCanBeSwitchedByUser
    Randomizer.scenario
    Randomizer.tagManager
    Randomizer.Query<T>()
    Randomizer.OnCreate()
    Randomizer.OnAwake()
    Randomizer.OnEnable()
    Randomizer.OnDisable()
    Randomizer.OnScenarioStart()
    Randomizer.OnScenarioComplete()
    Randomizer.OnIterationEnd()
    Randomizer.OnStartRunning()
    Randomizer.OnStopRunning()
    Randomizer.OnUpdate()
    Randomizer.OnDestroy()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.Randomization.Randomizers
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [Serializable]
    [MovedFrom("UnityEngine.Perception.Internal")]
    [AddRandomizerMenu("Perception/Scene Randomizer")]
    public class SceneRandomizer : Randomizer

    Fields

    includedScenes

    When switching to a scene, the new scene will be picked from the options below.

    Declaration
    [FormerlySerializedAs("sceneReferenceParameter")]
    [UsedImplicitly]
    [Tooltip("When switching to a scene, the new scene will be picked from the options below. We ensure that no two consecutive scenes are the same.")]
    public CategoricalParameter<SceneReference> includedScenes
    Field Value
    Type Description
    CategoricalParameter<SceneReference>
    Remarks

    We ensure that no two consecutive scenes are the same.

    iterationsPerScene

    The number of iterations to spend in a scene before switching to a new one.

    Declaration
    [UsedImplicitly]
    [Tooltip("The number of iterations to spend in a scene before switching to a new one.")]
    public int iterationsPerScene
    Field Value
    Type Description
    int

    Methods

    OnIterationStart()

    OnIterationStart is called at the start of a new Scenario iteration

    Declaration
    protected override void OnIterationStart()
    Overrides
    Randomizer.OnIterationStart()
    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)