Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


CustomEditorForRenderPipelineAttribute

Defines which object type the custom editor class can edit.
Read time 1 minuteLast updated 9 days ago

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • 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)
public CustomEditorForRenderPipelineAttribute(Type inspectedType, Type renderPipeline)

Parameters

inspectedType

Type that this editor can edit.

renderPipeline

Type of RenderPipelineAsset that that should be active for this inspector to be used.

Remarks

Additional Resources: Editor 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)
public CustomEditorForRenderPipelineAttribute(Type inspectedType, Type renderPipeline, bool editorForChildClasses)

Parameters

inspectedType

Type that this editor can edit.

renderPipeline

Type of RenderPipelineAsset that that should be active for this inspector to be used.

editorForChildClasses

If true, child classes of inspectedType will also show this editor. Defaults to false.

Remarks

Additional Resources: Editor class.