docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct GetPosition

    Provides methods to calculate, in parallel, the positions along NativeSpline.

    Implements
    IJobParallelFor
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: UnityEngine.Splines
    Assembly: solution.dll
    Syntax
    public struct GetPosition : IJobParallelFor

    Fields

    Name Description
    Positions

    A NativeArray of float3 to be written. The size of this array determines how many positions are evaluated.

    Spline

    The NativeSpline to be evaluated.

    Methods

    Name Description
    Execute(int)

    Called by the job system to evaluate a position at an index. The interpolation value is calculated as index / positions.Length - 1.

    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)