Unreal Engine Blueprint API Reference > World Subsystems
Get Viewport Stats Subsystem (World Subsystem)
The Viewport Stats Subsystem offers the ability to add messages to the current viewport such as "LIGHTING NEEDS TO BE REBUILT" and "BLUEPRINT COMPILE ERROR".
Example usage:
if (UViewportStatsSubsystem* ViewportSubsystem = GetWorld()->GetSubsystem
// ... or use inline lambda functions ViewportSubsystem->AddDisplayDelegate( { // Some kind of state management OutText = NSLOCTEXT("FooNamespace", "Blarg", "Display message here"); OutColor = FLinearColor::Red; return bShouldDisplay; }); }
Outputs
Type | Name | Description |
---|---|---|
object | Return Value |