/Engine/Source/Runtime/Engine/Classes/Materials/Material.h
Set the given usage flag.
bool - true if the material can be used for rendering with the given type.
bool SetMaterialUsage ( bool & bNeedsRecompile, const EMaterialUsage Usage, [UMaterialInterface](API\Runtime\Engine\Materials\UMaterialInterface) * MaterialInstance )