기술 자료

Unity Engine

Unity Engine

CustomPivotAttribute(string, Type, Type)

Registers a CustomPivotMode or CustomPivotRotation as an additional option to the Editor's built-in pivot mode or rotation settings.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

public CustomPivotAttribute(string displayName, Type targetTool = null, Type targetToolContext = null)

Parameters

displayName

The name to display in the Editor's UI for this pivot setting.

targetTool

If provided, the pivot setting is only available when the ToolManager.activeToolType is equal to targetTool.

targetToolContext

If provided, the pivot setting is only available when the ToolManager.activeContextType is equal to targetToolContext.