docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Add

    Add(float, T)

    Append a DataPoint<TDataType> to this collection.

    Declaration
    public void Add(float t, T data)
    Parameters
    Type Name Description
    float t

    The interpolant relative to Spline. How this value is interpreted is dependent on PathIndexUnit.get.

    T data

    The data to store in the created data point.

    Add(DataPoint<T>)

    Append a DataPoint<TDataType> to this collection.

    Declaration
    public int Add(DataPoint<T> dataPoint)
    Parameters
    Type Name Description
    DataPoint<T> dataPoint

    The data point to append to the SplineData collection.

    Returns
    Type Description
    int

    The index of the inserted dataPoint.

    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)