Version: 2022.3

ShaderUtil.ShaderHasWarnings

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

参数

shader The shader to check for compilation warnings.

返回

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

描述

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