docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Samples

    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.

    Declaration
    public abstract NativeArray<T> Samples(int sampleCount, out JobHandle jobHandle)
    Parameters
    Type Name Description
    int sampleCount

    Number of parameter samples to generate

    JobHandle jobHandle

    The JobHandle returned from scheduling the sampling job

    Returns
    Type Description
    NativeArray<T>

    A NativeArray containing generated samples

    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)