IsPassCompiled(Material, int)
Checks if the shader variant for the given pass in the material has already been compiled.
読み終わるまでの所要時間 1 分最終更新 23日前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static bool IsPassCompiled(Material material, int pass)
Parameters
Returns
Type | Description |
|---|---|
| bool | True if the Editor has already compiled the shader variant needed for the specific pass of the material. Otherwise, false. |
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.