docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SplitSplineOnKnot

    SplitSplineOnKnot(ISplineContainer, SplineKnotIndex)

    Splits a spline in a SplineContainer into two splines at a specified knot.

    Declaration
    public static SplineKnotIndex SplitSplineOnKnot(this ISplineContainer container, SplineKnotIndex knotInfo)
    Parameters
    Type Name Description
    ISplineContainer container

    The target SplineContainer.

    SplineKnotIndex knotInfo

    The SplineKnotIndex of the spline to split.

    Returns
    Type Description
    SplineKnotIndex

    The SplineKnotIndex of the first knot of the spline that was created from the split.

    Exceptions
    Type Condition
    IndexOutOfRangeException

    An exception is thrown when the knot belongs to a spline not contained by the provided container or when the knot index is out of range.

    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)