docs.unity3d.com
    Show / Hide Table of Contents

    Class SplineDataToolBase<DataType>

    Inheritance
    Object
    SplineDataToolBase<DataType>
    BorderTool
    DriftTool
    LookAtTool
    WidthTool
    Namespace: Unity.Splines.Examples
    Syntax
    public abstract class SplineDataToolBase<DataType> : EditorTool
    Type Parameters
    Name Description
    DataType

    Fields

    k_HandleSize

    Declaration
    protected const float k_HandleSize = null
    Field Value
    Type Description
    Single

    Methods

    DrawDataPoint(Vector3, Vector3, Vector3, DataType, out DataType)

    User defined method, for simplicity here, all the SplineData Tools have to override the same DrawDataPoint method for consistency between tools

    Declaration
    protected abstract bool DrawDataPoint(Vector3 position, Vector3 tangent, Vector3 up, DataType inValue, out DataType outValue)
    Parameters
    Type Name Description
    Vector3 position
    Vector3 tangent
    Vector3 up
    DataType inValue
    DataType outValue
    Returns
    Type Description
    Boolean

    True if the dataPoint is manipulated, else false.

    DrawDataPoints(ISpline, SplineData<DataType>)

    Declaration
    protected bool DrawDataPoints(ISpline spline, SplineData<DataType> splineData)
    Parameters
    Type Name Description
    ISpline spline
    SplineData<DataType> splineData
    Returns
    Type Description
    Boolean
    Back to top
    Terms of use
    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