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

    Class Parameter

    Parameters, in conjunction with a parameter configuration, are used to create convenient interfaces for randomizing simulations.

    Inheritance
    Object
    Parameter
    CategoricalParameterBase
    NumericParameter<T>
    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.Parameters
    Syntax
    [Serializable]
    public abstract class Parameter

    Constructors

    Parameter()

    Constructs a new parameter

    Declaration
    protected Parameter()

    Properties

    sampleType

    The sample type generated by this parameter

    Declaration
    public abstract Type sampleType { get; }
    Property Value
    Type Description
    Type

    Methods

    GenericSample()

    Generates a generic sample

    Declaration
    public abstract object GenericSample()
    Returns
    Type Description
    Object

    The generated sample

    GetDisplayName(Type)

    Returns the display name of a parameter type

    Declaration
    public static string GetDisplayName(Type type)
    Parameters
    Type Name Description
    Type type

    A subclass of Parameter

    Returns
    Type Description
    String

    The parameter type's display name

    IterateState(Int32)

    Offsets the state of each sampler employed by this parameter

    Declaration
    public void IterateState(int offsetIndex)
    Parameters
    Type Name Description
    Int32 offsetIndex

    Often the current scenario iteration

    ResetState()

    Resets the state of each sampler employed by this parameter

    Declaration
    public void ResetState()

    Validate()

    Validates parameter settings

    Declaration
    public virtual void Validate()
    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