Custom Editor block in ShaderLab reference
Reference for the CustomEditor block in ShaderLab.
읽는 시간 1분최근 업데이트: 한 달 전
This page contains information on using a or block in your ShaderLab code to assign custom editors.
CustomEditorCustomEditorForRenderPipelineRender pipeline compatibility
Feature name | Universal Render Pipeline (URP) | High Definition Render Pipeline (HDRP) | Custom SRP | Built-in Render Pipeline |
|---|---|---|---|---|
| ShaderLab: CustomEditor block | Yes | Yes | Yes | Yes |
| ShaderLab: CustomEditorForRenderPipeline block | Yes | Yes | Yes | No |
Syntax
Signature | Function |
|---|---|
| Unity uses the custom editor defined in the named class, unless this is overridden by a |
| When the active render pipeline asset is the named type, Unity uses the custom editor defined in the named class. |