Why does my Gamemode classes reset to default on editor startup?
Hey, i'm having some trouble with my gamemode at the moment. I have a gamemode class in C++ in which i set the default pawn class and the player controller class. But each time i start the editor the two classes that i set are reset to the default value. But they have that small yellow arrow to reset the value back to the classes that were set using C++.
The gamemode blueprint.
The world settings
Maps and Modes, project settings
And the code in the gamemode class.
asked Aug 05 '15 at 09:51 AM in Using UE4
To find out where the values are being set use a memory breakpoint - this is how you do it in visual studio:
My guess is that the blueprint defaults are overriding the C++ defaults somewhere in the actor spawning code and you should move the assignment to some other function (InitGame perhaps?).
answered Aug 05 '15 at 06:10 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here