Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInterface
Description
Checks if the material can be used with the given usage flag. If the flag isn't set in the editor, it will be set and the material will be recompiled with it.
Derived Overrides
| Name | CheckMaterialUsage |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInterface.h |
| Include Path | #include "Materials/MaterialInterface.h" |
virtual bool CheckMaterialUsage
(
const EMaterialUsage Usage
)
bool - true if the material can be used for rendering with the given type.
Parameters
| Name | Remarks |
|---|---|
| Usage | The usage flag to check |