- Home /
I am having some issues with using Input.GetMouseButton the same time as Input.GetKey...
So what i wanna do is pressing Input.GetKey as the same time as i press Input.GetMouseButton but when they are pressed at the same time Input.GetMouseButton does not work... Please help Thanks :)
Answer by knobblez · Dec 01, 2018 at 09:21 PM
Idk what you're doing but what I would do for this is have 2 booleans. When mouse is down bool1 is true. when key is down, bool2 is true. Then do action when both are true.
Answer by osteboste · Dec 01, 2018 at 09:34 PM
The problem is that when i am pressing the key i am not able to do anything with Input.GetMouseButton
Your answer
![](https://koobas.hobune.stream/wayback/20220612183124im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Issue with Input.GetMouseButton (0) on mobile (iPhone) 2 Answers
if-else for Input.GetKey 1 Answer
Hide object on key if finds object 0 Answers
Send Keys to Background Window 0 Answers
if button help? 2 Answers