# CustomEditor

> Defines which object type the custom editor class can edit.

## Definition

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

## CustomEditor(Type)

Defines which object type the custom editor class can edit.

```csharp
public CustomEditor(Type inspectedType)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Type that this editor can edit.

### Remarks

Additional Resources: [Editor](/engine/6000.6/script-reference/unityeditor/editor.md) class.

## CustomEditor(Type, bool)

Defines which object type the custom editor class can edit.

```csharp
public CustomEditor(Type inspectedType, bool editorForChildClasses)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Type that this editor can edit.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): If true, child classes of inspectedType will also show this editor. Defaults to false.

### Remarks

Additional Resources: [Editor](/engine/6000.6/script-reference/unityeditor/editor.md) class.
