docs.unity3d.com
    Show / Hide Table of Contents

    Class UnitySimulationScenarioConstants

    A class encapsulating the scenario constants fields required for Unity Simulation cloud execution

    Inheritance
    Object
    ScenarioConstants
    UnitySimulationScenarioConstants
    FixedLengthScenario.Constants
    Inherited Members
    ScenarioConstants.randomSeed
    Namespace: UnityEngine.Perception.Randomization.Scenarios
    Syntax
    public class UnitySimulationScenarioConstants : ScenarioConstants

    Fields

    instanceCount

    The number of Unity Simulation instances assigned to execute this scenario. The total number of iterations (N) will be divided by the number of instances (M), so each instance will run for N/M iterations.

    Declaration
    public int instanceCount
    Field Value
    Type Description
    Int32

    instanceIndex

    The Unity Simulation instance index of the currently executing worker.

    Declaration
    public int instanceIndex
    Field Value
    Type Description
    Int32

    totalIterations

    The total number of iterations to run a scenario for. At the start of each iteration, the timings for all Perception Cameras will be reset.

    Declaration
    public int totalIterations
    Field Value
    Type Description
    Int32
    Back to top
    Terms of use
    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