Changing input to select dialogue options

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
EWalk13
Posts: 11
Joined: Mon Oct 12, 2015 6:20 pm

Changing input to select dialogue options

Post by EWalk13 »

Hi, for our game we are using a Xbox 360 controller. I was wondering how to map the xbox buttons to move through and select the dialogue options that appear instead of using the mouse and button clicks. Hopefully someone has an answer. If someone could respond ASAP because we are on a deadline by the end of today. Thank You!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing input to select dialogue options

Post by Tony Li »

Hi,

Which GUI system are you using?

If you're using Unity UI, set up navigation as described here. Then tick Auto Focus as described here.

If you're using legacy Unity GUI, see here.

If you're using NGUI, use UIKeyNavigation.
appl044
Posts: 2
Joined: Wed Mar 09, 2016 7:35 pm

Re: Changing input to select dialogue options

Post by appl044 »

Thank you, I think you have a great product, I am looking forward to using it when I get a basic version running under xbox one.

I experienced the same challenge for XBOX One. So, I tried using legacy Unity GUI, from your URL
http://pixelcrushers.com/dialogue_syste ... eyboardNav

Input Manager: https://www.dropbox.com/s/meqpooom2zuuz ... r.png?dl=0
ResponsePanel: https://www.dropbox.com/s/sehmly3ccqhwz ... l.png?dl=0
It does not auto select the first item when running under preview or xbox, and I cannot see where i can set that.
Also, the "B" button does not select in the preview window. (tried "B" and "b" in the input manager.)
Any thoughts, because I cannot get this to work under xbox ?
Mike
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing input to select dialogue options

Post by Tony Li »

Hi Mike,

I see you added an instance of the Sci-fi Dialogue UI to your scene. Make sure to assign this instance to the Dialogue Manager's Display Settings > Dialogue UI field. Also, if you want the instance to persist across scene changes along with your Dialogue Manager, make it a child of the Dialogue Manager.

The "B" assigned to the Click field refers to the keyboard's B key (in Unity, KeyCode.B).

The Click Button field is where you'll assign a button name that you've defined in the Input Manager. Your screenshot shows that the Click Button field is currently "Fire1". In the Input Manager, "Fire1" is mapped to joystick button 0 (the gamepad's A button) and the keyboard's B key.

"Fire2" is mapped to the gamepad's B button by default. If you want this button to select responses, change Click Button to "Fire2".

If that doesn't help, please feel free to send me an example scene or steps to reproduce the issue. I'll be happy to take a look.
appl044
Posts: 2
Joined: Wed Mar 09, 2016 7:35 pm

Re: Changing input to select dialogue options

Post by appl044 »

Seem like I had some extra entries within the Unity Input panel, which must have been causing it to be disabled. It works now, thank you!
User avatar
Tony Li
Posts: 22104
Joined: Thu Jul 18, 2013 1:27 pm

Re: Changing input to select dialogue options

Post by Tony Li »

Awesome, glad it's working!
Post Reply