GetShaderMessages
Returns each error and warning generated by the Unity Shader Compiler for the given Shader.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
GetShaderMessages(Shader)
Returns each error and warning generated by the Unity Shader Compiler for the given Shader.
public static ShaderMessage[] GetShaderMessages(Shader s)
Parameters
Returns
Type | Description |
|---|---|
| ShaderMessage[] | An array of ShaderMessage structs containing the generated messages. |
GetShaderMessages(Shader, ShaderCompilerPlatform)
Returns each error and warning generated by the Unity Shader Compiler for the given Shader.
public static ShaderMessage[] GetShaderMessages(Shader s, ShaderCompilerPlatform platform)
Parameters
The ShaderCompilerPlatform to check for messages.
Returns
Type | Description |
|---|---|
| ShaderMessage[] | An array of ShaderMessage structs containing the generated messages. |