Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInstance
Description
This function will submit any remaining shaders to be compiled for the given material. By default these shader compilation jobs will be compiled in the background.
Virtual Inheritance
- UMaterialInterface::CacheShaders → UMaterialInstance::CacheShaders
| Name | CacheShaders |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInstance.h |
| Include Path | #include "Materials/MaterialInstance.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInstance.cpp |
virtual void CacheShaders
(
EMaterialShaderPrecompileMode CompileMode
)
Parameters
| Name | Remarks |
|---|---|
| CompileMode | Controls whether or not we block on the shader compile results. |