ShaderUtil.GetShaderMessages

Declaration

public static ShaderMessage[] GetShaderMessages(Shader s, Rendering.ShaderCompilerPlatform platform);

Declaration

public static ShaderMessage[] GetShaderMessages(Shader s);

Parameters

s The Shader instance to check for messages.
platform The ShaderCompilerPlatform to check for messages.

Returns

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

Description

Returns each error and warning generated by the Unity Shader Compiler for the given Shader.


Did you find this page useful? Please give it a rating: