SetActiveContext
Sets the active EditorToolContext.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
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.