Documentation

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.
Read time 1 minuteLast updated a month ago

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