Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
CloseFor some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Closematerial | The Material to check against. |
pass | The index of the Shader pass to check. |
Checks if the Shader variant for the given pass in the Material has already been compiled.
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.
See Also: :ref::CompilePass, allowAsyncCompilation, anythingCompiling, SetAsyncCompilation, RestoreAsyncCompilation.