# CustomEditorForRenderPipelineAttribute

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

## Definition

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

## CustomEditorForRenderPipelineAttribute(Type, Type)

Defines which object type the custom editor class can edit.

> **Warning:**
>
> **Deprecated.** CustomEditorForRenderPipelineAttribute is deprecated. Use CustomEditor with SupportedOnCurrentPipeline instead. #from(2023.1)

```csharp
public CustomEditorForRenderPipelineAttribute(Type inspectedType, Type renderPipeline)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Type that this editor can edit.**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Type of [RenderPipelineAsset](/engine/6000.7/script-reference/unityengine/rendering/renderpipelineasset.md) that that should be active for this inspector to be used.

### Remarks

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

## CustomEditorForRenderPipelineAttribute(Type, Type, bool)

Defines which object type the custom editor class can edit.

> **Warning:**
>
> **Deprecated.** CustomEditorForRenderPipelineAttribute is deprecated. Use CustomEditor with SupportedOnCurrentPipeline instead. #from(2023.1)

```csharp
public CustomEditorForRenderPipelineAttribute(Type inspectedType, Type renderPipeline, bool editorForChildClasses)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Type that this editor can edit.**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): Type of [RenderPipelineAsset](/engine/6000.7/script-reference/unityengine/rendering/renderpipelineasset.md) that that should be active for this inspector to be used.**** (\[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.7/script-reference/unityeditor/editor.md) class.
