docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Insert

    Insert(int, BezierKnot)

    Insert a BezierKnot at the specified index.

    Declaration
    public void Insert(int index, BezierKnot knot)
    Parameters
    Type Name Description
    int index

    The zero-based index to insert the new element.

    BezierKnot knot

    The BezierKnot to insert.

    Implements
    IList<T>.Insert(int, T)

    Insert(int, BezierKnot, TangentMode)

    Inserts a BezierKnot at the specified index.

    Declaration
    public void Insert(int index, BezierKnot knot, TangentMode mode)
    Parameters
    Type Name Description
    int index

    The zero-based index to insert the new element.

    BezierKnot knot

    The BezierKnot to insert.

    TangentMode mode

    The TangentMode to apply to this knot. Tangent modes are enforced when a knot value is set.

    Insert(int, BezierKnot, TangentMode, float)

    Adds a BezierKnot at the specified index.

    Declaration
    public void Insert(int index, BezierKnot knot, TangentMode mode, float tension)
    Parameters
    Type Name Description
    int index

    The zero-based index to insert the new element.

    BezierKnot knot

    The BezierKnot to insert.

    TangentMode mode

    The TangentMode to apply to this knot. Tangent modes are enforced when a knot value is set.

    float tension

    The modifier value that is used to calculate the magnitude of tangents when the TangentMode is AutoSmooth. Valid values are between 0 and 1. A lower value results in sharper curves, whereas higher values appear more rounded.

    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)