Class SplineDataHandles
Provides methods for drawing
Namespace: UnityEditor.Splines
Syntax
public static class SplineDataHandles : object
Methods
DataPointHandles<TSpline, TData>(TSpline, SplineData<TData>)
Draw default manipulation handles that enables adding, removing and moving DataPoints of the targeted SplineData along a Spline. Left click on an empty location on the spline adds a new DataPoint in the SplineData. Left click on an existing DataPoint allows to move this point along the Spline while a right click on it allows to delete that DataPoint.
Declaration
public static void DataPointHandles<TSpline, TData>(this TSpline spline, SplineData<TData> splineData)
where TSpline : ISpline
Parameters
Type | Name | Description |
---|---|---|
TSpline | spline | The Spline to use to interpret the SplineData. |
SplineData<TData> | splineData | The SplineData for which the handles are drawn. |
Type Parameters
Name | Description |
---|---|
TSpline | The Spline type. |
TData | The type of data this data point stores. |