When I set a cpp game mode as Default GameMode, i can't set Default pawn class, but a blueprint game mode can. why

I create a cpp third-person project, i create a new cpp character class, and i want to set it as my default pawn class.
And then i find when the Default GameMode is the cpp game mode class, i can not set the default pawn class with my new character class. So i try to create a blueprint game mode class inherit from the cpp game mode. When i choose the blueprint one as my Default GameMode, i find that i can set the default pawn class with any character class.
So, could anyone help me to figure it out why it could be this.Thanks!

249763-tim图片20180808075331.png

Because that is a shortcut to editing the currently selected blueprint.
The c++ settings cannot be modified in the UE4 editor.

An easy workaround is to create a Game Mode Blueprint, and under Event Graph->Class Settings change the parent class to your c++ file. This will allow you to use both the C++ GameMode but also the blueprint dropdown boxes.

1 Like

Thank you very much! I know more about ue4 now