docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class NumericParameter<T>

    Numeric parameters use samplers to generate randomized structs

    Inheritance
    object
    Parameter
    NumericParameter<T>
    BooleanParameter
    ColorHsvaParameter
    ColorRgbParameter
    FloatParameter
    IntegerParameter
    Vector2Parameter
    Vector3Parameter
    Vector4Parameter
    Inherited Members
    Parameter.samplers
    Parameter.GetDisplayName(Type)
    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 NumericParameter<T> : Parameter where T : struct
    Type Parameters
    Name Description
    T

    The sample type of the parameter

    Properties

    sampleType

    The sample type of parameter

    Declaration
    public override sealed Type sampleType { get; }
    Property Value
    Type Description
    Type
    Overrides
    Parameter.sampleType

    Methods

    GenericSample()

    Generates a generic sample

    Declaration
    public override object GenericSample()
    Returns
    Type Description
    object

    The generated sample

    Overrides
    Parameter.GenericSample()

    Sample()

    Generates one parameter sample

    Declaration
    public abstract T Sample()
    Returns
    Type Description
    T

    The generated sample

    Validate()

    Validate the settings of this parameter

    Declaration
    public override void Validate()
    Overrides
    Parameter.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)