Class SplineMoveTool
Provides methods that move knots and tangents in the Scene view. This tool is only available when you use SplineToolContext.
SplineMoveTool
works similarly to the Move tool for GameObjects, except that it has extra handle configurations according to the handleOrientation
settings.
SplineToolContext
manages the selection of knots and tangents. You can manipulate the selection of knots and tangents with SplineMoveTool
.
Inherited Members
Namespace: UnityEditor.Splines
Assembly: Unity.Splines.Editor.dll
Syntax
[EditorTool("Spline Move Tool", typeof(ISplineContainer), typeof(SplineToolContext))]
public sealed class SplineMoveTool : SplineTool
Properties
gridSnapEnabled
Use this property to allow the current EditorTool to enable/disable grid snapping.
Declaration
public override bool gridSnapEnabled { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
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.
Declaration
public override GUIContent toolbarIcon { get; }
Property Value
Type | Description |
---|---|
GUIContent |
Overrides
Methods
OnToolGUI(EditorWindow)
Use this method to implement a custom editor tool.
Declaration
public override void OnToolGUI(EditorWindow window)
Parameters
Type | Name | Description |
---|---|---|
EditorWindow | window | The window that is displaying the custom editor tool. |