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.GetDisplayName(Type)
    Parameter.ResetState()
    Parameter.IterateState(int)
    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
    Assembly: solution.dll
    Syntax
    [Serializable]
    public abstract class NumericParameter<T> : Parameter where T : struct
    Type Parameters
    Name Description
    T

    The sample type of the parameter

    Properties

    Name Description
    sampleType

    The sample type of parameter

    Methods

    Name Description
    GenericSample()

    Generates a generic sample

    Sample()

    Generates one parameter sample

    Samples(int, out JobHandle)

    Schedules a job to generate an array of parameter samples. Call Complete() on the JobHandle returned by this function to wait on the job generating the parameter samples.

    Validate()

    Validate the settings of this parameter

    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)