Class EditorSplineUtility
Editor utility functions for working with Spline and SplineData<T>.
Inherited Members
Namespace: UnityEditor.Splines
Assembly: solution.dll
Syntax
public static class EditorSplineUtility
Properties
Name | Description |
---|---|
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. |
Methods
Name | Description |
---|---|
CopySplineDataIfEmpty(ISplineContainer, int, int, EmbeddedSplineDataType, string) | Copy an embedded SplineData<T> collection to a new Spline if the destination
does not already contain an entry matching the |
RegisterSplineDataChanged<T>(Action<SplineData<T>>) | Use this function to register a callback that gets invoked once per-frame if any SplineData<T> changes occur. |
SetKnotPlacementTool() | Sets the current active context to the SplineToolContext and the current active tool to the Draw Splines Tool (KnotPlacementTool) |
UnregisterSplineDataChanged<T>(Action<SplineData<T>>) | Use this function to unregister SplineData<T> change callback. |
Events
Name | Description |
---|---|
AfterSplineWasModified | Invoked once per-frame if a spline property has been modified. |