Spawn Actor Inside The GameInstance?

Hello,

I was wondering if it was a good idea to spawn a pawn inside the game instance?

I have a main menu. In that menu i have a button add character:
image

I add and spawn a new character inside the game instance. (For future manipulation)

Now i want to load a new level.

Inside the new game mode, i get the game instance of my pawn.

Is it good or not to proceed like that?

I proceed like that because when i use the Event Begin Play of the game mode, i have issue with the possess function…
Solution is to add a delay into the game mode before the possessed of the pawn… it’s not good for me…

SO i try to move that logic inside a game instance.
But when i try to read the pawn in my new game mode it doesn’t exist…

So if it’s the good approach i will try to find the issue… If it’s not the good approach, what is the good approach??

Game Instance is for objects that last for the entire game, I don’t think it’s a good idea, or is even possible. ( AActor needs an UWorld and it gets destroyed when you change your map )

You could use others Game Mode functions before Begin Play is called:
AGameModeBase::StartPlay

AGameModeBase

thanks, i will read more info about those functions.