docs.unity3d.com
    Show / Hide Table of Contents

    Class SamplerState

    Encapsulates the random state that all samplers mutate when generating random values

    Inheritance
    Object
    SamplerState
    Namespace: UnityEngine.Perception.Randomization.Samplers
    Syntax
    public static class SamplerState : object

    Fields

    randomState

    The central random state that all samplers mutate when generating random numbers

    Declaration
    public static uint randomState
    Field Value
    Type Description
    UInt32

    Methods

    CreateGenerator()

    Creates a random number generator seeded with a unique random state

    Declaration
    public static Unity.Mathematics.Random CreateGenerator()
    Returns
    Type Description
    Unity.Mathematics.Random

    The seeded random number generator

    NextRandomState()

    Generates a new random state and overwrites the old random state with the newly generated value

    Declaration
    public static uint NextRandomState()
    Returns
    Type Description
    UInt32

    The newly generated random state

    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