ドキュメント

Unity Engine

Unity Engine

ShaderVariant(Shader, PassType, params string[])

Creates a ShaderVariant structure.
読み終わるまでの所要時間 1 分最終更新 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.