SetActiveContext
Sets the active EditorToolContext.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEditor.EditorTools
- Assembly: UnityEditor.CoreModule
SetActiveContext(Type)
Sets the active EditorToolContext.
public static void SetActiveContext(Type context)
Parameters
The EditorToolContext type to be set as the active tool.
Remarks
To restore the manipulation tools to their default behavior, pass GameObjectToolContext or null to the context argument.
SetActiveContext<T>()
Sets the active EditorToolContext.
public static void SetActiveContext<T>() where T : EditorToolContext
Remarks
To restore the manipulation tools to their default behavior, pass GameObjectToolContext or null to the context argument.