Class CinemachineTool
This was a base class for Cinemachine tools, but is not longer used.
Implements
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.InstantiateAsync<T>(T, InstantiateParameters)
Object.InstantiateAsync<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: Unity.Cinemachine.Editor
Assembly: Unity.Cinemachine.Editor.dll
Syntax
[Obsolete("This class is no longer used.")]
public abstract class CinemachineTool : EditorTool, IDrawSelectedHandles
Properties
toolbarIcon
This lets the editor find the icon of the tool.
Declaration
public override GUIContent toolbarIcon { get; }
Property Value
| Type | Description |
|---|---|
| GUIContent |
Overrides
Methods
GetIcon()
Implement this to set your Tool's icon and tooltip.
Declaration
protected abstract GUIContent GetIcon()
Returns
| Type | Description |
|---|---|
| GUIContent | A GUIContent with an icon set. |
OnActivated()
This is called when the Tool is selected in the editor.
Declaration
public override void OnActivated()
Overrides
OnDrawHandles()
Implement IDrawSelectedHandles to draw gizmos for this tool even if it is not the active tool.
Declaration
public void OnDrawHandles()
OnWillBeDeactivated()
This is called when the Tool is deselected in the editor.
Declaration
public override void OnWillBeDeactivated()