Class SplineRotateTool
Provides methods to rotate knots and tangents in the Scene view. This tool is only available when you use SplineToolContext.
SplineRotateTool
is similar to the Rotate tool for GameObjects except that it has extra handle configurations according to the handleOrientation
settings.
The rotation of tangents are usually related to the rotation of their knots, except when tangents use the Broken Bezier tangent mode. The rotation of tangents that use the Broken Bezier tangent mode are independent from the rotation of their knot.
SplineToolContext
manages the selection of knots and tangents. You can manipulate the selection of knots and tangents with SplineRotateTool
.
Inherited Members
Namespace: UnityEditor.Splines
Assembly: solution.dll
Syntax
[EditorTool("Spline Rotate", typeof(ISplineContainer))]
public sealed class SplineRotateTool : SplineTool
Properties
Name | Description |
---|---|
toolbarIcon | The icon and tooltip for this custom editor tool. If this function is not implemented, the toolbar displays the Inspector icon for the target type. If no target type is defined, the toolbar displays the Tool Mode icon. |
Methods
Name | Description |
---|---|
OnToolGUI(EditorWindow) | Use this method to implement a custom editor tool. |