Download

How to attach a custom Player Controller to a custom pawn in my world outliner

I have a custom APlayerController C++ subclass and a custom Pawn. I can drag my pawn in the world outliner and it’s in the game. But how can I attach or “possess” my pawn with my custom player controller?? Note, I don’t want an answer involving the use of Blueprint.

Answering my own question, since this community seems to be dead. You need to subclass GameModeBase, set it within the project settings editor as the game mode base, and install the custom PlayerController on your subclass.