I made a Level called MainMenu that also loads a Widget Called MainMenu. In this MainMenu Widget, if you press “Start Game”, it loads the FlatGrass Map. The Map loading itself works. Also the correct Player Pawn Controller “RtsPawnController” is loaded.
Just the RtsPawn which was set inside the GameMode used for the FlatGrass Level seems not to be loaded correctly by the Engine… it is “None” if I try to get its Reference inside the RtsPawnController.
Yeah, it is a possession Problem. Forgot to put a Pawn inside the “GrassLevel” and did not know I need to either possess the Pawn by AutoPosess at the Pawn Class Settings or some Blueprint scripting etc.
If I directly Play the Map inside the Editor, it seems the Editor injects a Pawn automatically at the actual View position…
Now it seems my Input Events inside the “RtsPawnController” do not trigger anymore.
If I start the “FlatGrass” Level directly the Inputs are triggered without Problem. Don’t know if this problem has kind of the same Root… Should I open a new Question for this?
I have no Controls inside the Pawn. my Controls are all set inside the PlayerController. is this the wrong way to go? Did fetch this way to go from a Youtube Tutorial.
here’s my Controller Blueprint (Rts style Camera Movement):
This reply is really late but if it helps anyone in the future, This is most likely because you have set input mode UI only when displaying the widget to the viewport for the main menu but forgot to set the input mode to Game and UI/ Game only where you are doing the open level node.