CustomEditorForRenderPipelineAttribute
Tells an Editor class which run-time type it's an editor for when the given RenderPipeline is activated.
Read time 3 minutesLast updated 4 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor
- Inherits from: CustomEditor
- Implements: _Attribute
[AttributeUsage(AttributeTargets.Class)]public class CustomEditorForRenderPipelineAttribute : CustomEditor, _Attribute
Remarks
When you make a custom editor for a component that changes based on the active RenderPipeline you need to put this attribute on the class.
Additional Resources: Editor class.
Constructors
Constructor | Description |
|---|---|
| CustomEditorForRenderPipelineAttribute(System.Type,System.Type) | Defines which object type the custom editor class can edit. |
| CustomEditorForRenderPipelineAttribute(System.Type,System.Type,System.Boolean) | Defines which object type the custom editor class can edit. |