Version: 2022.3

ShaderUtil.ShaderHasError

切换到手册
public static bool ShaderHasError (Shader shader);

参数

shader The shader to check for compilation errors.

返回

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

描述

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