文档

Unity Engine

Unity Engine

ShaderHasWarnings(Shader)

Checks if a shader has any compilation warnings. Ignores errors.
阅读时间1 分钟最后更新于 14 小时前

Definition

public static bool ShaderHasWarnings(Shader shader)

Parameters

shader

The shader to check for compilation warnings.

Returns

Type

Description

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