Page 1 of 1

Using Selector component with USE_NEW_INPUT?

Posted: Sun Dec 20, 2020 4:12 pm
by cgranade
My partner and I recently started working with Dialogue System for Unity, and we were able to add it to our game's scenes and to kick off dialogue as per the quickstart tutorial at Following the documentation, we were able to use the

Code: Select all

USE_NEW_INPUT
setting as well to use the Dialogue Manager with an EventSystem configured for use with the new Unity Input System.

We ran into some trouble, however, with using the Selector component. When the Selector added to a Player GameObject is set to use the mouse position, we're getting lots of errors about directly using

Code: Select all

Input.GetAxis
after turning on the new input system. While we can work around by using the center-of-screen mode for the Selector, we wanted to quickly ask if it was possible to use mouse position with the new input system?

Thanks for the help!

Re: Using Selector component with USE_NEW_INPUT?

Posted: Sun Dec 20, 2020 4:34 pm
by Tony Li
Hi,

Yes. That got overlooked with the Selector script. On line 555 of Selector.cs, change this:

Code: Select all

return Input.mousePosition;
to this:

Code: Select all

return InputDeviceManager.GetMousePosition();
That change will be in the next release, too.