docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method MoveDataPoint

    MoveDataPoint(int, float)

    Move a DataPoint<TDataType> (if it exists) from this collection, from one index to the another.

    Declaration
    public int MoveDataPoint(int index, float newIndex)
    Parameters
    Type Name Description
    int index

    The index of the DataPoint<TDataType> to move. This is the index into the collection, not the PathIndexUnit.Knot.

    float newIndex

    The new index (Knot) for this DataPoint<TDataType>.

    Returns
    Type Description
    int

    The index of the modified DataPoint<TDataType>.

    Exceptions
    Type Condition
    ArgumentOutOfRangeException
    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)