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
public static void CompilePass(Material material, int pass, bool forceSync = false)
Parameters
Remarks
Additional Resources: :ref::IsPassCompiled, ShaderUtil.allowAsyncCompilation, ShaderUtil.anythingCompiling, ShaderUtil.SetAsyncCompilation, ShaderUtil.RestoreAsyncCompilation.