Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInterface
Description
Materials are not guaranteed to have all their shaders compiled after loading and using this function before a draw will ensure that the material will not render until it's ready to (and use a fallback material instead). This needs to be avoided in the common render path but can be useful in critical tools (e.g. landscape) that rely on the material and cannot afford a fallback material. In the editor, it will display a toast when waiting for the shaders to compile.
| Name | EnsureIsComplete |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInterface.h |
| Include Path | #include "Materials/MaterialInterface.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInterface.cpp |
void EnsureIsComplete()