Menu Navigation with Arrow Keys in Unity | Easy Unity Tutorial

Menu Navigation with Arrow Keys in Unity | Easy Unity Tutorial

Michael

5 лет назад

19,950 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@DanZaidan
@DanZaidan - 24.08.2019 14:11

Hi Mikey! I just learned about your channel on Jonas' video!
When I created the arrow system for my game's menu I banged my had against the wall for days! Your solution was elegant (I wish I had known it at that time!).
Unfortunately, my channel didn't make it to his video. :(
All the best!

Ответить
@Danee2108
@Danee2108 - 28.09.2019 23:56

Hi! I tried to do this but buttons will only select using the arrows after I've clicked one of them with the mouse. And the highlight while using the arrows is too light and it can't be seen well.

Ответить
@pagoda_dimensionale9761
@pagoda_dimensionale9761 - 26.01.2020 18:30

Ehy can you help me? It work just fine, but what i need to do for having the first button selected automatically when a start the game? Thank!

Ответить
@MegaCX
@MegaCX - 24.02.2020 04:50

I do not work I press the keys but nothing happens

Ответить
@OhHiMark666
@OhHiMark666 - 25.03.2020 02:10

name of this Song version?

Ответить
@rbknight7525
@rbknight7525 - 26.03.2020 22:55

thanks bro...that was great

Ответить
@Owen221
@Owen221 - 21.04.2020 21:34

What button should you press to tap the button besides the mouse?

Ответить
@daichi_devs
@daichi_devs - 22.06.2020 01:34

This worked wonderfully. Thank you!

Ответить
@sajidgame1321
@sajidgame1321 - 04.08.2020 21:48

Thank you is very nice tutorial

Ответить
@sajidgame1321
@sajidgame1321 - 04.08.2020 21:50

But how if I want use same navigation style in UI with image only , & (without button) ?

Ответить
@gar98k
@gar98k - 23.10.2020 07:21

Wow I didn't know it was that simple

Ответить
@marcelolopezdelerma
@marcelolopezdelerma - 12.11.2020 15:14

thanks man

Ответить
@nickolasmachado9274
@nickolasmachado9274 - 24.05.2021 02:00

thank you

Ответить
@alicanted
@alicanted - 11.06.2021 11:17

Good tutorial, but you forgot to include how to select a button on start up (without mouse). For those who are wondering, check the event system and look at "First Selected" :)

Ответить
@trys10studios
@trys10studios - 17.07.2021 03:24

As much as I've used Unity over the years, I completely overlooked this and always find some convoluted programmatic way to do it...this is a game changer, and a time saver lol. Thank you! Also thanks to the comments below that suggested using a script, never considered doing it that way (I'm old school sometimes in my way of thinking), I'm not new to OOP either...had a dummy moment. Thanks again!

Ответить
@HiHoSHOW
@HiHoSHOW - 07.12.2021 14:33

What if I want to hide the mouse cursor completely ? how would I do that! I only want to use arrows keys

Ответить
@heh_21
@heh_21 - 26.10.2022 18:14

Thanks:)

Ответить
@kiritosintern
@kiritosintern - 19.02.2023 02:36

Is there a way to make it so you can use WASD and not the arrow keys?

Ответить
@micheleguardabasso8162
@micheleguardabasso8162 - 12.03.2023 18:07

Hello HOW I CAN DOING WITH ROOL MOUSE GO AND BACK?

Ответить
@아지-d3r
@아지-d3r - 11.04.2023 10:29

REALLY HELPFUL

Ответить
@micheleguardabasso8162
@micheleguardabasso8162 - 17.04.2023 19:40

If id'like move up down with scroole whell mouse as minecraft?

Ответить
@bonse2000
@bonse2000 - 11.08.2023 19:47

hw can you click on them if press enter?

Ответить
@JuanmaSaotome32
@JuanmaSaotome32 - 02.10.2023 04:12

For people who want to use another keys insted of arrows, the event system works with the input system, so if you want another key, is as simple as change the input of the evento for a new one that use the keys you want, or you can also simply change the keys used by the default inputs

Ответить
@Broockle
@Broockle - 17.10.2023 07:28

woo Awesome! 😀
First came across a tutorial that used the new UI system. But to heck with that. This is way easier 😁

Ответить
@jaioudev
@jaioudev - 03.06.2024 07:52

Hello, when i'm following the video, it doesnt work. I'm quite interest to know about your input system and event system. Maybe I'm lost there. Or maybe do you have other solution for this one when if it doesn't work?

Ответить
@sniffs5164
@sniffs5164 - 05.02.2021 19:37

Since this requires you to click a button with the mouse before you can navigate, you need to open the Event System from the hierarchy (automatically created when you create a UI object) in the inspector and drag one of your buttons over from the hierarchy to the "first selected" box. Then when you click play this button will be automatically highlighted and you can navigate without mouse.

Ответить