기술 자료

Unity Engine

Unity Engine

SetActiveContext

Sets the active EditorToolContext.
읽는 시간 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.