# CustomPivotAttribute(string, Type, Type)

> Registers a CustomPivotMode or CustomPivotRotation as an additional option to the Editor's built-in pivot mode or rotation settings.

## Definition

* **Type:** Constructor
* **Namespace:** [UnityEditor.EditorTools](/engine/6000.6/script-reference/unityeditor/editortools.md)
* **Assembly:** UnityEditor.CoreModule

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

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name to display in the Editor's UI for this pivot setting.**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): If provided, the pivot setting is only available when the [ToolManager.activeToolType](/engine/6000.6/script-reference/unityeditor/editortools/toolmanager/activetooltype.md) is equal to targetTool.**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): If provided, the pivot setting is only available when the [ToolManager.activeContextType](/engine/6000.6/script-reference/unityeditor/editortools/toolmanager/activecontexttype.md) is equal to targetToolContext.
