ShaderUtil.CompilePass

Declaration

public static void CompilePass(Material material, int pass, bool forceSync);

Parameters

material Target Material.
pass Index of the target Shader pass.
forceSync Forces the script execution to wait until the compilation has finished. Optional.

Description

Request the Editor to compile the Shader Variant needed for the specific pass of the given Material.


Did you find this page useful? Please give it a rating: