Hello,
How to name an actor during initialization, because engine is adding a number suffix every time I run the game for example on first launch a game mode class object is called “GameMode” actor and during second run it will be “GameMode1” and the suffix just keeps increasing. I tried the following inside a AGameMode class constructor :
bool success = this->Rename(TEXT("MyGameMode"), NULL, REN_None);
this->SetFolderPath("/GameModesFolder");
But no luck. folder path works but Rename doesn’t.
Thank you