docs.unity.cn
    Show / Hide Table of Contents

    Class SplineHandles

    This class provides the ability to draw a handle for a spline.

    Inheritance
    Object
    SplineHandles
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.Splines
    Syntax
    public static class SplineHandles

    Methods

    DoCurve(Int32, BezierCurve)

    Draws a handle for a BezierCurve.

    Declaration
    public static void DoCurve(int controlID, BezierCurve curve)
    Parameters
    Type Name Description
    Int32 controlID

    The spline mesh controlID.

    BezierCurve curve

    The BezierCurve to create handles for.

    DoCurve(BezierCurve)

    Draws a handle for a BezierCurve.

    Declaration
    public static void DoCurve(BezierCurve curve)
    Parameters
    Type Name Description
    BezierCurve curve

    The BezierCurve to create handles for.

    DoSpline<T>(T)

    Draws a handle for a spline.

    Declaration
    public static void DoSpline<T>(T spline)
        where T : ISpline
    Parameters
    Type Name Description
    T spline

    The target spline.

    Type Parameters
    Name Description
    T

    A type implementing ISpline.

    DoSpline<T>(Int32, T)

    Draws a handle for a spline.

    Declaration
    public static void DoSpline<T>(int controlID, T spline)
        where T : ISpline
    Parameters
    Type Name Description
    Int32 controlID

    The spline mesh controlID.

    T spline

    The target spline.

    Type Parameters
    Name Description
    T

    A type implementing ISpline.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, April 27, 2023