How can I change the default pawn class of the default game mode class on c++

Hello.

Apologies in advance, cause I’m a newbie on UE5.
I have a c++ project and a game mode class.
As you can see in the image below, the game mode class is set in world settings, but it doesn’t let me change the default pawn class.

Nevertheless, I have changed the default pawn class in c++ via:

static ConstructorHelpers::FClassFinder<APawn> PlayerPawnClassFinder(TEXT("/Game/Blueprints/BP_DummyCharacter"));
DefaultPawnClass = PlayerPawnClassFinder.Class;

When I run the game via UE5 Editor, I get the first person pawn class, but when I run the editor via my C++ project, I get the BP_DummyCharacter.

So my question is why do I get such a different behavior even though I use the same Game Mode class ? How can I define the default pawn class from within UE editor ?

Thank you for your time.
P.