ドキュメント

Unity Engine

Unity Engine

ShaderHasWarnings(Shader)

Checks if a shader has any compilation warnings. Ignores errors.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.