docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method EvaluatePosition

    EvaluatePosition<T>(T, NativeArray<float3>)

    Populate a preallocated NativeArray with position data from a spline.

    Declaration
    public static void EvaluatePosition<T>(T spline, NativeArray<float3> positions) where T : ISpline
    Parameters
    Type Name Description
    T spline

    The spline to evaluate. If you pass a NativeSpline, it must be allocated with the Persistent or TempJob allocator. Temp is invalid for use with the Jobs system.

    NativeArray<float3> positions

    A preallocated array of float3 to be populated with evenly interpolated positions from a spline.

    Type Parameters
    Name Description
    T

    The type of ISpline.

    EvaluatePosition(NativeSpline, NativeArray<float3>)

    Populate a preallocated NativeArray with position data from a spline.

    Declaration
    public static void EvaluatePosition(NativeSpline spline, NativeArray<float3> positions)
    Parameters
    Type Name Description
    NativeSpline spline

    The spline to evaluate. The NativeSpline must be allocated with a Persistent or TempJob allocator. Temp is invalid for use in the Jobs system.

    NativeArray<float3> positions

    A preallocated array of float3 to be populated with evenly interpolated positions from a spline.

    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)