Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInterface
Description
Checks if the material can be used with the given usage flag. In the editor, if the flag isn't set, it will be set and the material will be recompiled with it.
| Name | CheckMaterialUsage |
| 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 |
bool CheckMaterialUsage
(
EMaterialUsage Usage
)
true if the material can be used for rendering with the given flag.