docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Add

    Add(BezierKnot)

    Adds a knot to the spline.

    Declaration
    public void Add(BezierKnot item)
    Parameters
    Type Name Description
    BezierKnot item

    The BezierKnot to add.

    Implements
    ICollection<T>.Add(T)

    Add(BezierKnot, TangentMode)

    Adds a knot to the spline.

    Declaration
    public void Add(BezierKnot item, TangentMode mode)
    Parameters
    Type Name Description
    BezierKnot item

    The BezierKnot to add.

    TangentMode mode

    The tangent mode for this knot.

    Add(BezierKnot, TangentMode, float)

    Adds a knot to the spline.

    Declaration
    public void Add(BezierKnot item, TangentMode mode, float tension)
    Parameters
    Type Name Description
    BezierKnot item

    The BezierKnot to add.

    TangentMode mode

    The tangent mode for this knot.

    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)