ドキュメント

Unity Engine

Unity Engine

CompilePass(Material, int, bool)

Request the Editor to compile the Shader Variant needed for the specific pass of the given Material.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public static void CompilePass(Material material, int pass, bool forceSync = false)

Parameters

material

Target Material.

pass

Index of the target Shader pass.

forceSync

Forces the script execution to wait until the compilation has finished. Optional.

Remarks