기술 자료

Unity Engine

Unity Engine

ShaderVariant(Shader, PassType, params string[])

Creates a ShaderVariant structure.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Constructor
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

ShaderVariant(Shader, PassType, string[])

public ShaderVariant(Shader shader, PassType passType, params string[] keywords)

Parameters

shader


passType


keywords

Remarks

Note that this will throw an ArgumentException if shader is null, pass type does not exist or variant with the passed keywords is not found.
Additional Resources: ShaderVariantCollection.Add.