文档

Unity Engine

Unity Engine

GetCustomEditorForRenderPipeline

Gets the shader's custom editor class name for a specific render pipeline asset type.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule

GetCustomEditorForRenderPipeline(Shader, string)

Gets the shader's custom editor class name for a specific render pipeline asset type.
public static string GetCustomEditorForRenderPipeline(Shader shader, string renderPipelineType)

Parameters

shader

The shader to check against.

renderPipelineType

The render pipeline asset type.

Returns

Type

Description

stringReturns the full class name of the custom editor.

GetCustomEditorForRenderPipeline(Shader, Type)

Gets the shader's custom editor class name for a specific render pipeline asset type.
public static string GetCustomEditorForRenderPipeline(Shader shader, Type renderPipelineType)

Parameters

shader

The shader to check against.

renderPipelineType

The render pipeline asset type.

Returns

Type

Description

stringReturns the full class name of the custom editor.