- Home /
Canvas GUI Button problem walking
I'm a new programmer, I was wondering why while I walk and press a slot the button is also pressed. The process is as follows. Thanks UNITY CO
Are you saying that this doesn't happen when the player isn't walking?
Answer by TreyH · Nov 22, 2019 at 01:20 PM
I don't think it's being pressed, just highlighted.
You're walking forward and Unity's UI system automatically maps nearby UI controls to each other for relative navigation. So, when you press that slot with your mouse, it gets selected and then holding "up / forward" tells Unity to move that selection up also. I imagine you can get a similar behavior by pressing slots under that second button.
Try removing the navigation from that slot in particular and see if the behavior persists:
Wow thanks a lot, issue resolved... you are been very explicit This community its wonderful!!
Your answer
Follow this Question
Related Questions
How to make button stay the same size on all screens? 2 Answers
Can't enable canvas 1 Answer
On Click paramaters disappear from button prefab? 5 Answers
How to instantiate a prefab between Canvas and a Button? 0 Answers
If button highlighted 2 Answers