const bool bShowingStat = ViewportClient->IsStatEnabled(*StatName);
if (!bShowingStat)
{
GEngine->SetEngineStat(GetWorld(), ViewportClient, *StatName, true/*false*/);
}
I realized that I can code like this
But is this the only way?