material | Target Material. |
pass | Index of the target Shader pass. |
forceSync | Forces the script execution to wait until the compilation has finished. Optional. |
Request the Editor to compile the Shader Variant needed for the specific pass of the given Material.
Additional resources: IsPassCompiled, allowAsyncCompilation, anythingCompiling, SetAsyncCompilation, RestoreAsyncCompilation.