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 5 days ago
Definition
- Type: Class
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
- Inherits from: CustomEditor
[AttributeUsage(AttributeTargets.Class)]public class CustomEditorForRenderPipelineAttribute : CustomEditor
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. |