Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetShaderMessages

Returns each error and warning generated by the Unity Shader Compiler for the given Shader.
Read time 1 minuteLast updated 10 days ago

Definition

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

GetShaderMessages(Shader)

Returns each error and warning generated by the Unity Shader Compiler for the given Shader.
public static ShaderMessage[] GetShaderMessages(Shader s)

Parameters

The Shader instance to check for messages.

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 Shader instance to check for messages.

The ShaderCompilerPlatform to check for messages.

Returns

Type

Description

ShaderMessage[]An array of ShaderMessage structs containing the generated messages.