docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddDataPointWithDefaultValue

    AddDataPointWithDefaultValue(float, bool)

    Append a DataPoint<TDataType> with default value to this collection.

    Declaration
    public int AddDataPointWithDefaultValue(float t, bool useDefaultValue = false)
    Parameters
    Type Name Description
    float t

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

    bool useDefaultValue

    If true will use m_DefaultValue to set the value, otherwise will interpolate the value regarding the closest DataPoints.

    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)