/Engine/Source/Runtime/Engine/Classes/Engine/ViewportStatsSubsystem.h
// ... or use inline lambda functions ViewportSubsystem->AddDisplayDelegate({ // Some kind of state management OutText = NSLOCTEXT("FooNamespace", "Blarg", "Display message here"); OutColor = FLinearColor::Red; return bShouldDisplay; }); }
class UViewportStatsSubsystem : public [UWorldSubsystem](API\Runtime\Engine\Subsystems\UWorldSubsystem)
TArray<FViewpo...
DisplayDelegates
Array of delegates that will be displayed if they return true when evaluated
TArray<TShared...
UniqueDisplayMessages
Array of unique one-off timed messages to display each frame no matter what