This version of Unity is unsupported.

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.