Mouse Cursor and Inputs | Possessed Pawn
Hello! I am trying to use enable/disable mouse and use custom action inputs as a Possessed Pawn.
Currently, I possess a pawn with a key event "F" and flip/flop possess MyCharacter. I am trying to figure out a way to enable cursor and mouse events for UMG HUD Widget while possessing another pawn.
I found the "Auto Receive Input" but even having this enabled, key events that would trigger UMG events, doesn't work. Maybe there is something I am missing?
Also, I noticed that when using possess pawn, the pawn automatically receives the UMG HUD widget that is added to View Port in MyCharacter.
On that pawn, I want to have a different UMG Widget added to view port. This works if I change the default pawn in MyGame to the pawn in question. Why does possessing a pawn not use the Widget that is being added to view port?
You should try "Inputmode UI and Game" (it's a bit longer but I can't recall the exact name). If you search for "UI and" in the context menu with the reference from your widget (the pin you get form "Create Widget") it should show up.
Where is it added? Unless you are removing the widget on "Unpossess" and add a new one on "Possess" it will just keep your current widget. So if you added it during the construction script, event begin play or anything like that it won't change.
answered Mar 22 '15 at 10:49 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here