How to change/set the player state class for GameModeBase in a C++ project?

in constructor PlayerStateClass = new_player_state_class::StaticClass()

1 Like

I have a C++ project in which I want to change/Set the player state class for GameModeBase.
In blueprint this is very easy, you just open the bp_gamemodebase and change the player state class, but how to do this in C++ as I have a gamemodebase class in C++ according to the C++ project.