Question by
sukrubeyyy · Apr 07, 2021 at 10:41 PM ·
buttoncanvas
How to know if i player clicked on UI
Hi i am working on a mobile game but i have a problem. I am getting mouse x and mouse y position with Input.GetAxisRaw("Mouse X") and Input.GetAxisRaw("Mouse Y") like a photo. I have a fire button. When i click this button my player object rotate but i dont want to do this. Also i'm checking with EventSystem.current.IsPointerOverGameObject(). But i dont understand why didn't do this ? i hope anyone help me. (if i did make mistakes apologies because i'm still learning english)
resim-2021-04-08-012629.png
(35.7 kB)
resim-2021-04-08-013314.png
(16.0 kB)
Comment
Your answer
Follow this Question
Related Questions
UI in World Space doesn't respond 1 Answer
Scene Buttons not working after scene switch 0 Answers
[SOLVED]Fade in Fade out problem 1 Answer
How is it possible to make the position of an UI-Button static 0 Answers
Manipulate ui canvas button hitbox 2 Answers