hide show menu, prevent input trigger by PC?
I'm using this to try hide/show my menu. But it seems the PC is triggering input after the UI did (they both look for the same key) making the menu show up again... If I change the UI key it will work fine, I can also hack it kindof by holding down the key for a bit.
This is the code I'm using atm, can someone tell me what I am doing wrong? Thanks!
asked Aug 10 '15 at 10:46 AM in C++ Programming
Rather than check input in the UI it would be better practice to do this in the player controller. You can setup the action mapping in the project settings with the name of the action and the related key. Then in the Character class you can assign which function to call when the action is taken. The Third Person code template has a good example of this in how the Jump function is setup in the character class.
answered Aug 10 '15 at 08:24 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here