Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterial
Description
Directly set the usage flag on this material. This doesn't validate the usage flag for the material, and it doesn't trigger recompilation.
| Name | SetUsageByFlag |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/Material.h |
| Include Path | #include "Materials/Material.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/Material.cpp |
void SetUsageByFlag
(
EMaterialUsage Usage,
bool NewValue
)