Class SplineToolContext
Defines a tool context for editing splines. When authoring tools for splines, pass the SplineToolContext type to the EditorToolAttribute.editorToolContext parameter to register as a spline tool.
Inherited Members
Namespace: UnityEditor .Splines
Assembly: solution.dll
Syntax
[EditorToolContext("Spline", typeof(ISplineContainer))]
public sealed class SplineToolContext : EditorToolContext
Properties
Name | Description |
---|---|
use |
Defines if the spline tool context draws the default handles for splines or if they are managed directly by the |
Methods
Name | Description |
---|---|
Frame |
This methods automatically frames the selected splines or spline elements in the scene view. |
Get |
Returns the matching EditorTool type for the specified Tool given the context. |
On |
Invoked after this EditorToolContext becomes the active tool context. |
On |
Invoked for each window where this context is active. The spline context uses this method to implement common functionality for working with splines, ex gizmo drawing and selection. |
On |
Invoked before this EditorToolContext stops being the active tool context. |