docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor Spline

    Spline()

    Default constructor creates a spline with no knots, not closed.

    Declaration
    public Spline()

    Spline(int, bool)

    Create a spline with a pre-allocated knot capacity.

    Declaration
    public Spline(int knotCapacity, bool closed = false)
    Parameters
    Type Name Description
    int knotCapacity

    The capacity of the knot collection.

    bool closed

    Whether the spline is open (has a start and end point) or closed (forms an unbroken loop).

    Spline(IEnumerable<BezierKnot>, bool)

    Create a spline from a collection of BezierKnot.

    Declaration
    public Spline(IEnumerable<BezierKnot> knots, bool closed = false)
    Parameters
    Type Name Description
    IEnumerable<BezierKnot> knots

    A collection of BezierKnot.

    bool closed

    Whether the spline is open (has a start and end point) or closed (forms an unbroken loop).

    Spline(Spline)

    Create a copy of a spline.

    Declaration
    public Spline(Spline spline)
    Parameters
    Type Name Description
    Spline spline

    The spline to copy in that new instance.

    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)