Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UMaterialInterface
Description
Determines whether each quality level has different nodes by inspecting the material's expressions. Or is required by the material quality setting overrides.
| Name | GetQualityLevelUsage |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/Materials/MaterialInterface.h |
| Include Path | #include "Materials/MaterialInterface.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Materials/MaterialInterface.cpp |
void GetQualityLevelUsage
(
TArray < bool, TInlineAllocator< EMaterialQualityLevel::Num > > & QualityLevelsUsed,
EShaderPlatform ShaderPlatform,
bool bCooking
)
Parameters
| Name | Remarks |
|---|---|
| QualityLevelsUsed | output array of used quality levels. |
| ShaderPlatform | The shader platform to use for the quality settings. |
| bCooking | During cooking, certain quality levels may be discarded |