Input action for mouse button not triggering
I have a following setup for input.
Next to it there is a small script on my character blueprint.
When I start this and hit "F" while targeting object with that RemoveObject interface, it works perfectly. However the left mouse button does absolutely nothing. When I add breakpoint to the Remove Object node, it never gets triggered. Is it a bug or it needs to be handled differently?
Example project: https://github.com/FredyC/TestUnrealInput
Have you got left mouse button for any other mappings or events? if so try disconnecting them it may be getting in the way of it firing.
answered Dec 13 '16 at 02:05 PM
I can't look into an example right now.
But probably you have to enable click events within the player controller?
Normally mouse clicks are working fine.
answered Dec 14 '16 at 08:03 AM
Well that's really interesting, looks like that main culprit was about mouse capture. Changing it to "Capture During Mouse Down" suddenly works in all cases, action input and also click events within actor itself.
I have setup a separate branch in git repo with version that works now: https://github.com/FredyC/TestUnrealInput/tree/working
answered Dec 14 '16 at 09:51 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here