Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetActiveContext

Sets the active EditorToolContext.
Read time 1 minuteLast updated 5 days ago

Definition

SetActiveContext(Type)

Sets the active EditorToolContext.
public static void SetActiveContext(Type context)

Parameters

context

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.