IsPassCompiled(Material, int)
Checks if the Shader variant for the given pass in the Material has already been compiled.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static bool IsPassCompiled(Material material, int pass)
Parameters
Returns
Type | Description |
|---|---|
| bool |
Remarks
The Editor can compile Shaders asynchronously. You can use this method to check if the Editor has already compiled the particular Shader Variant needed for the specific pass of the Material.
Additional Resources: :ref::CompilePass, ShaderUtil.allowAsyncCompilation, ShaderUtil.anythingCompiling, ShaderUtil.SetAsyncCompilation, ShaderUtil.RestoreAsyncCompilation.