docs.unity3d.com
    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.GetDisplayName(Type)
    Namespace: UnityEngine.Perception.Randomization.Parameters
    Syntax
    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 sealed override 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()
    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