Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

ShaderUtil.ShaderHasWarnings

Declaration

public static bool ShaderHasWarnings(Shader shader);

Parameters

shader The shader to check for compilation warnings.

Returns

bool Returns true if the shader has any compilation warnings. Otherwise, returns false.

Description

Checks if a shader has any compilation warnings. Ignores errors.