ShaderHasError(Shader)
Checks if a shader has any compilation errors. Ignores warnings.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static bool ShaderHasError(Shader shader)
Parameters
The shader to check for compilation errors.
Returns
Type | Description |
|---|---|
| bool | Returns true if the shader has any compilation errors. Otherwise, returns false. |