기술 자료

Unity Engine

Unity Engine

ShaderHasError(Shader)

Checks if a shader has any compilation errors. Ignores warnings.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static bool ShaderHasError(Shader shader)

Parameters

shader

The shader to check for compilation errors.

Returns

Type

Description

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