How can I fix stat fps in visible/visible state?
What do you think?
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?