Class EditorSplineUtility
Editor utility functions for working with Spline and SplineData<T>.
Namespace: UnityEditor.Splines
Syntax
public static class EditorSplineUtility : object
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> |