文档

Unity Engine

Unity Engine

CustomEditorForRenderPipelineAttribute

Defines which object type the custom editor class can edit.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Constructor
  • Namespace: UnityEditor
  • Assembly: UnityEditor

CustomEditorForRenderPipelineAttribute(Type, Type)

Defines which object type the custom editor class can edit.
警告
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.
警告
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.