docs.unity3d.com
Search Results for

    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
    Assembly: solution.dll
    Syntax
    public static class SplineHandles

    Properties

    Name Description
    lineBehindColor

    The color of sections of spline curve handles that are behind objects in the Scene view.

    lineColor

    The color of sections of spline curves handles that are in front of objects in the Scene view.

    pickingDistance

    The distance to pick a spline knot, tangent, or curve handle at.

    tangentColor

    The color of tangent handles for a spline.

    Methods

    Name Description
    DoCurve(int, BezierCurve)

    Draws a handle for a BezierCurve.

    DoCurve(BezierCurve)

    Draws a handle for a BezierCurve.

    DoHandles(IReadOnlyList<SplineInfo>)

    Creates handles for a set of splines. These handles display the knots, tangents, and segments of a spline. These handles support selection and the direct manipulation of spline elements.

    DoKnotHandles(SelectableKnot)

    Create handles for a knot. These handles the support selection and direct manipulation of spline elements. Call DoKnotHandles in a SplineHandleScope.

    DoKnotWithTangentsHandles(SelectableKnot)

    Creates handles for a knot and its tangents if those tangents are modifiable. These handles support the selection and direct manipulation of spline elements. Call DoKnotWithTangentsHandles in a SplineHandleScope.

    DoKnotsAndTangentsHandles(IReadOnlyList<SplineInfo>)

    Creates knot and tangent handles for multiple splines. Call DoKnotsAndTangentsHandles in a SplineHandleScope. This method is used internally by DoHandles.

    DoKnotsAndTangentsHandles(SplineInfo)

    Creates knot and tangent handles for a spline. Call DoKnotsAndTangentsHandles in a SplineHandleScope. This method is used internally by DoHandles.

    DoSegmentsHandles(SplineInfo)

    Creates segment handles for a spline. Call DoCurvesHandles in a SplineHandleScope. This method is used internally by DrawHandles.

    DoSpline<T>(int, T)

    Draws a handle for a spline.

    DoSpline<T>(T)

    Draws a handle for a spline.

    DoTangentsHandles(SelectableKnot)

    Create handles for a knot's tangents if those tangents are modifiable. DoTangentsHandles does not create handles for the knot. These handles support the selection and direct manipulation of the spline elements. Call DoTangentsHandles in a SplineHandleScope.

    DrawKnot(int, SelectableKnot, bool, bool)

    Draws handles for a knot. These handles are drawn only during repaint events and not on selection.

    DrawKnot(SelectableKnot, bool, bool)

    Draws handles for a knot. These handles are drawn only during repaint events and not on selection.

    DrawTangent(int, SelectableTangent, bool, bool)

    Draws handles for a tangent. These handles are drawn only during repaint events and not on selection.

    DrawTangent(SelectableTangent, bool, bool)

    Draws handles for a tangent. These handles are drawn only during repaint events and not on selection.

    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)