- Home /
How Can I Switch Focus Between 3D Text Buttons By Using The Keyboard?
Hi!
I am writing my game in Javascript, and I have a few 3D buttons in my menu which I would want to access by using the keyboard's arrow keys. I know this is possible with GUI buttons, by using the FocusControl function, but I can't find any information about how to do this with 3D text objects. How can I switch the focus of multiple 3D buttons with my arrowkeys?
Alternatively, it could also be that the keyboard actually moves the cursor to hover over the different buttons, but how do I make the mouse move between the buttons by using the arrowkeys?
Any help would be much appreciated!
There is nothing I know of to do what you want. You could write your own. Should not be much code. Untested hack: If you have a mix of 3D buttons and GUI buttons, you could create three invisible GUI buttons as placeholders/alternates for your three 3D buttons.