기술 자료

Unity Engine

Unity Engine

ShaderData.PreprocessedVariant

Represents the results of preprocessing a variant using ShaderData.Pass.PreprocessVariant.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Struct
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public struct ShaderData.PreprocessedVariant

Properties

Property

Description

MessagesStores errors and warnings produced during preprocessing (Read Only).
PreprocessedCodeStores the preprocessed code for the shader variant (Read Only).
SuccessIndicates whether the variant preprocessing succeeded (Read Only). If it did, this is true. Otherwise, this is false and ShaderData.PreprocessedVariant.Messages contains the errors.