docs.unity.cn
    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 Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Monday, April 4, 2022
    Terms of use