ShaderHasError(Shader)
Checks if a shader has any compilation errors. Ignores warnings.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
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. |