docs.unity3d.com
Search Results for

    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.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.Randomization.Parameters
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [Serializable]
    public abstract class Parameter

    Properties

    sampleType

    The sample type generated by this parameter

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

    samplers

    Returns an IEnumerable that iterates over each sampler field in this parameter

    Declaration
    public abstract IEnumerable<ISampler> samplers { get; }
    Property Value
    Type Description
    IEnumerable<ISampler>

    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

    Validate()

    Validates parameter settings

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