Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Materials > UMaterial
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Materials/Material.h |
Include | #include "Materials/Material.h" |
Source | /Engine/Source/Runtime/Engine/Private/Materials/Material.cpp |
bool SetMaterialUsage
&40;
bool & bNeedsRecompile,
const EMaterialUsage Usage,
UMaterialInterface &42; MaterialInstance
&41;
Remarks
Set the given usage flag. bool - true if the material can be used for rendering with the given type.
Parameters
Name | Description |
---|---|
bNeedsRecompile | true if the material was recompiled for the usage change |
Usage | The usage flag to set |
MaterialInstance | MI requesting the usage (as of now usage flags are only stored in the parent) |