ドキュメント

Unity Engine

Unity Engine

SetActiveContext

Sets the active EditorToolContext.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

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.