Version: 2022.1
言語: 日本語
public static bool IsPassCompiled (Material material, int pass);

パラメーター

material 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.