docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method DuplicateSpline

    DuplicateSpline(ISplineContainer, SplineKnotIndex, SplineKnotIndex, out int)

    Duplicate a spline between 2 knots of a source spline.

    Declaration
    public static void DuplicateSpline(this ISplineContainer container, SplineKnotIndex fromKnot, SplineKnotIndex toKnot, out int newSplineIndex)
    Parameters
    Type Name Description
    ISplineContainer container

    The target SplineContainer.

    SplineKnotIndex fromKnot

    The start knot to use to duplicate the spline.

    SplineKnotIndex toKnot

    The end knot to use to duplicate the spline.

    int newSplineIndex

    The index of the new created spline in the container.

    Exceptions
    Type Condition
    ArgumentException

    Thrown when the provided knots aren't valid or aren't on the same spline.

    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)