How to run Stat Startfile console command in C++?

Yli327
Fri, 14 Sep 2018 23:50:13 +0000
C++

Hey, guys

I want to call the console command Stat Startfile from c++. However, when I use FString startfile = "STAT STARTFILE"; GetWorld()->Exec(GetWorld(), *startfile);, the engine is crashed.
Could you guys please teach me how to run the command like Stat Start/StopFile in the C++?

Thanks
Bests
YL

2 posts - 2 participants