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 分钟最后更新于 1 个月前
Definition
- Type: Constructor
- Namespace: UnityEditor.EditorTools
- Assembly: UnityEditor.CoreModule
public CustomPivotAttribute(string displayName, Type targetTool = null, Type targetToolContext = null)
Parameters
The name to display in the Editor's UI for this pivot setting.
If provided, the pivot setting is only available when the ToolManager.activeToolType is equal to targetTool.
If provided, the pivot setting is only available when the ToolManager.activeContextType is equal to targetToolContext.