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

    Class Vector3Parameter

    A numeric parameter for generating Vector3 samples

    Inheritance
    Object
    Parameter
    NumericParameter<Vector3>
    Vector3Parameter
    Inherited Members
    NumericParameter<Vector3>.sampleType
    NumericParameter<Vector3>.GenericSample()
    NumericParameter<Vector3>.Validate()
    Parameter.GetDisplayName(Type)
    Parameter.ResetState()
    Parameter.IterateState(Int32)
    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 class Vector3Parameter : NumericParameter<Vector3>

    Fields

    x

    The sampler used for randomizing the x component of generated samples

    Declaration
    [SerializeReference]
    public ISampler x
    Field Value
    Type Description
    ISampler

    y

    The sampler used for randomizing the y component of generated samples

    Declaration
    [SerializeReference]
    public ISampler y
    Field Value
    Type Description
    ISampler

    z

    The sampler used for randomizing the z component of generated samples

    Declaration
    [SerializeReference]
    public ISampler z
    Field Value
    Type Description
    ISampler

    Methods

    Sample()

    Generates a Vector3 sample

    Declaration
    public override Vector3 Sample()
    Returns
    Type Description
    Vector3

    The generated sample

    Overrides
    UnityEngine.Experimental.Perception.Randomization.Parameters.NumericParameter<UnityEngine.Vector3>.Sample()

    Samples(Int32, out JobHandle)

    Schedules a job to generate an array of samples

    Declaration
    public override NativeArray<Vector3> Samples(int sampleCount, out JobHandle jobHandle)
    Parameters
    Type Name Description
    Int32 sampleCount

    The number of samples to generate

    JobHandle jobHandle

    The handle of the scheduled job

    Returns
    Type Description
    NativeArray<Vector3>

    A NativeArray of samples

    Overrides
    UnityEngine.Experimental.Perception.Randomization.Parameters.NumericParameter<UnityEngine.Vector3>.Samples(System.Int32, Unity.Jobs.JobHandle)
    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