RealDocs

UKismetSystemLibrary::GetRenderingMaterialQualityLevel

function Engine Blueprint Since 4.0
#include "Kismet/KismetSystemLibrary.h"
Access: public Specifiers: staticUFUNCTIONBlueprintPure

Description

Returns the clamped state of the r.MaterialQualityLevel console variable: 0=low, 1=high, 2=medium.

Caveats & Gotchas

  • The header's own comment lists the values out of numeric order (0: low, 1: high, 2: medium) — double-check against your project's scalability settings rather than assuming ascending quality.
  • Cannot be used in construction scripts — flagged UnsafeDuringActorConstruction.
  • Useful for selecting between material instances or quality-tiered assets at runtime, but changes to the CVar mid-session require re-querying this.

Signature

static int32 GetRenderingMaterialQualityLevel()

Return Type

int32

Example

Select a material variant by quality level C++
const int32 QualityLevel = UKismetSystemLibrary::GetRenderingMaterialQualityLevel();
UE_LOG(LogTemp, Log, TEXT("Material quality level: %d"), QualityLevel);

Version History

Introduced in: 4.0

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.