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 |
---|---|
useCustomSplineHandles | Defines if the spline tool context draws the default handles for splines or if they are managed directly by the |
Methods
Name | Description |
---|---|
FrameSelected() | This methods automatically frames the selected splines or spline elements in the scene view. |
GetEditorToolType(Tool) | Returns the matching EditorTool type for the specified Tool given the context. |
OnActivated() | Invoked after this EditorToolContext becomes the active tool context. |
OnToolGUI(EditorWindow) | 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. |
OnWillBeDeactivated() | Invoked before this EditorToolContext stops being the active tool context. |