This question was
closed Apr 17, 2017 at 08:27 PM by
VarunChopra for the following reason:
Other
Question by
VarunChopra · Apr 15, 2017 at 09:58 PM ·
androidbuttonevent triggering
unable to create a touch and hold event for UI button
i am trying to move my cube left or right by tapping and holding the GUI buttons. so to test it out i did it with my arrow keys(keyboard), it works fine ,arrow keys respond to tap and hold but when i switch the same code to event triggering and use pointerdown it doesnt function the same way it works for just a click and doesnt register the hold property
unity-design.png
(205.9 kB)
unity-code.png
(95.8 kB)
Comment
Follow this Question
Related Questions
How to get access to bool from one script to another with touch input? 1 Answer
How to disable back button in android during unity splash screen display? 0 Answers
How can I make a UI button press affect something in a text box? 0 Answers
Move the player by holding a UI Button? 1 Answer
Switch PC Controls to Android ? 1 Answer