Hello!
I’ve created my own custom player controller. In it I do the following.
So the string shown should be printed when the game starts. This is named
I have my character’s blueprint dragged onto the map and I’m able to control it. (It is possessed)
You can see the Game mode and the Player Controller class are both set. However when I run the game, the text ‘CustomPlayerController exists’ does not print.
In the past - I have had issues changing the Selected Game Mode settings (like Default Player Controller) on newly created maps. After restarting editor - the changes worked.
Also - it is sometimes useful to directly print the DisplayName of GetPlayerController just to see what class it is.
I remember doing this and it was printing the default class. Which makes sense why it would error because it was trying to access some variables that only existed on the custom player controller