docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddSpline

    AddSpline<T>(T)

    Creates a new spline and adds it to the ISplineContainer.

    Declaration
    public static Spline AddSpline<T>(this T container) where T : ISplineContainer
    Parameters
    Type Name Description
    T container

    The target container.

    Returns
    Type Description
    Spline

    Returns the spline that was created and added to the container.

    Type Parameters
    Name Description
    T

    A type that implements ISplineContainer.

    AddSpline<T>(T, Spline)

    Add a new Spline to the ISplineContainer.

    Declaration
    public static void AddSpline<T>(this T container, Spline spline) where T : ISplineContainer
    Parameters
    Type Name Description
    T container

    The target container.

    Spline spline

    The spline to append to this container.

    Type Parameters
    Name Description
    T

    A type that implements ISplineContainer.

    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)