Class EditorSplineUtility
Editor utility functions for working with Spline and SplineData<T>.
Inherited Members
Namespace: UnityEditor.Splines
Syntax
public static class EditorSplineUtility
Properties
DefaultTangentMode
Represents the default TangentMode used to place or insert knots. If the user does not define tangent handles, then the tangent takes the default TangentMode.
Declaration
public static TangentMode DefaultTangentMode { get; }
Property Value
Type | Description |
---|---|
TangentMode |
Methods
RegisterSplineDataChanged<T>(Action<SplineData<T>>)
Use this function to register a callback that gets invoked once per-frame if any SplineData<T> changes occur.
Declaration
public static void RegisterSplineDataChanged<T>(Action<SplineData<T>> action)
Parameters
Type | Name | Description |
---|---|---|
Action<SplineData<T>> | action | The callback to register. |
Type Parameters
Name | Description |
---|---|
T | The type parameter of SplineData<T>. |
UnregisterSplineDataChanged<T>(Action<SplineData<T>>)
Use this function to unregister SplineData<T> change callback.
Declaration
public static void UnregisterSplineDataChanged<T>(Action<SplineData<T>> action)
Parameters
Type | Name | Description |
---|---|---|
Action<SplineData<T>> | action | The callback to unregister. |
Type Parameters
Name | Description |
---|---|
T | The type parameter of SplineData<T>. |
Events
AfterSplineWasModified
Invoked once per-frame if a spline property has been modified.
Declaration
public static event Action<Spline> AfterSplineWasModified
Event Type
Type | Description |
---|---|
Action<Spline> |