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
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
Namespace: UnityEditor.Splines
Syntax
[EditorTool("Spline Rotate", typeof(ISplineContainer))]
public sealed class SplineRotateTool : SplineTool, IEditor
Properties
toolbarIcon
Declaration
public override GUIContent toolbarIcon { get; }
Property Value
Type | Description |
---|---|
GUIContent |
Overrides
Methods
OnToolGUI(EditorWindow)
Declaration
public override void OnToolGUI(EditorWindow window)
Parameters
Type | Name | Description |
---|---|---|
EditorWindow | window |