Class SplineScaleTool
Provides methods to scale knots and tangents in the Scene view. This tool is only available when you use SplineToolContext.
When you scale a knot, you also scale both its tangents and change the curvature of the segment around the knot.
SplineToolContext
manages the selection of knots and tangents. You can manipulate the selection of knots and tangents with SplineRotateTool
.
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Scene)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEditor.Splines
Assembly: Unity.Splines.Editor.dll
Syntax
[EditorTool("Spline Scale Tool", typeof(ISplineContainer), typeof(SplineToolContext))]
public sealed class SplineScaleTool : SplineTool
Properties
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. |