docs.unity3d.com
    Show / Hide Table of Contents

    Class SplineDataDrawer<T>

    SplineDataDrawer is a base class to override in order to enable custom handles for spline data. The Drawer needs to inherit from this class and override the method corresponding to the correct splineData type. Either one of the method or both can be overriden regarding the user needs.

    Inheritance
    Object
    SplineDataDrawer<T>
    CustomUpVectorHandle
    CustomWidthHandle
    SpeedHandle
    Namespace: UnityEditor.Splines
    Syntax
    public abstract class SplineDataDrawer<T>
    Type Parameters
    Name Description
    T

    Properties

    controlIDs

    Declaration
    public int[] controlIDs { get; set; }
    Property Value
    Type Description
    Int32[]

    Methods

    DrawKeyframe(Int32, Vector3, Vector3, Vector3, SplineData<T>, Int32)

    Declaration
    public virtual void DrawKeyframe(int controlID, Vector3 position, Vector3 direction, Vector3 upDirection, SplineData<T> splineData, int keyframeIndex)
    Parameters
    Type Name Description
    Int32 controlID
    Vector3 position
    Vector3 direction
    Vector3 upDirection
    SplineData<T> splineData
    Int32 keyframeIndex

    DrawSplineData(SplineData<T>, Spline, Matrix4x4, Color)

    Declaration
    public virtual void DrawSplineData(SplineData<T> splineData, Spline spline, Matrix4x4 localToWorld, Color color)
    Parameters
    Type Name Description
    SplineData<T> splineData
    Spline spline
    Matrix4x4 localToWorld
    Color color
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023