Class SplineTool
Base class from which all Spline tools inherit. Inherit SplineTool to author tools that behave like native spline tools. This class implements some common functionality and shortcuts specific to spline authoring.
Inherited Members
Namespace: UnityEditor.Splines
Assembly: solution.dll
Syntax
public abstract class SplineTool : EditorTool
Properties
Name | Description |
---|---|
activeTool | The current active SplineTool in use. |
handleOrientation | The current orientation of the handles for the current spline tool. |
handleRotation | The current rotation of the handle regarding the selection and the Handle Rotation configuration. |
pivotPosition | The current position of the pivot regarding the selection. |
Methods
Name | Description |
---|---|
OnActivated() | Invoked after this EditorTool becomes the active tool. |
OnHandleOrientationChanged() | Callback invoked when the handle rotation configuration changes. |
OnPivotModeChanged() | Callback invoked when the pivot mode configuration changes. |
OnWillBeDeactivated() | Invoked before this EditorTool stops being the active tool. |
UpdateHandleRotation() | Updates the current handle rotation. This is usually called internally by callbacks. UpdateHandleRotation can be called to refresh the handle rotation after manipulating spline elements, for instance, such as rotating a knot. |
UpdatePivotPosition(bool) | Updates current pivot position, usually called internally by callbacks. It can be called to refresh the pivot position after manipulating spline elements, for instance, such as moving a knot. |