| UMaterialInterface::CheckMaterialUsage()
|
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Materials/MaterialInterface.h |
Include |
#include "Materials/MaterialInterface.h" |
virtual bool CheckMaterialUsage
(
const EMaterialUsage Usage
)
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.
bool - true if the material can be used for rendering with the given type.
Parameter |
Description |
---|---|
Usage |
The usage flag to check |