- Home /
How do you make a method that gets called when a button gets highlighted using the arrow keys?
I have been trying to figure this out for a while, but I can't figure this out. I have seen how to call a method when a mouse hovers over a button, just not when the button gets highlighted using the keyboard. For example, say that I made a game that only uses the keyboard, a game like Cuphead, so I lock the cursor and make it invisible. But when it comes to making the menu, I want the player to navigate through the buttons using the arrow keys, but each time a button is highlighted, it makes some sort of SFX. This is what I am aiming for. Anyways, any answer on this topic would be well appreciated. Thank you for checking this out!
Your answer
Follow this Question
Related Questions
OnTriggerEnter and UI Collisions. 0 Answers
Why the text and the UI code is can't applying 0 Answers
how to stop google chrome opening when i try to edit component script? 1 Answer
How do i script basic attack animation? 3 Answers
How can I rotate an object to be perpendicular to a surface it hits (in 2D); 1 Answer