Move Cursor With Controller

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
BWLGeorge
Posts: 42
Joined: Sun Jun 19, 2022 10:10 pm

Move Cursor With Controller

Post by BWLGeorge »

Good evening,

Been working on adding hoverable tooltips to the dialogue to allow the player to reference specific terms throughout the game without having to consult a glossary or take notes or something by just hovering their mouse cursor over the words. I was trying to think of a way to get it to be controller friendly and my main idea was to ask if there's a way to potentially swap control from the dialogue box/response menu to a cursor temporarily? Or possibly even using the Right stick/Left stick as triggers? Wondering if anybody had any ideas or advice
User avatar
Tony Li
Posts: 22871
Joined: Thu Jul 18, 2013 1:27 pm

Re: Move Cursor With Controller

Post by Tony Li »

These ideas come to mind:

1. Use the left and right triggers to flip through the reference terms without having to employ a cursor.

2. Or use the joystick's d-pad or stick to move the mouse cursor. How you do this will depend on which input system you're using.

3. Or you could figure out the positions of the terms in the text (use TextMesh Pro <link> tags) and overlay text Buttons exactly on top of them. Then rely on the EventSystem's native UI navigation to navigate to them.

As a player, my personal preference would be #1 or #3.
Post Reply