Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials > UMaterialInterface
- UMaterialInterface::CheckMaterialUsage()
- UMaterialInstance::CheckMaterialUsage()
- UMaterial::CheckMaterialUsage()
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/MaterialInterface.h |
Include | #include "Materials/MaterialInterface.h" |
virtual bool CheckMaterialUsage
&40;
const EMaterialUsage Usage
&41;
Remarks
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.
Parameters
Name | Description |
---|---|
Usage | The usage flag to check |