Documentation

Unity Engine


User Manual

Script Reference

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 10 days 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