Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: dwmurp on February 28, 2014, 06:28:05 PM

Title: Question Regarding UIKeyBinding in 3+
Post by: dwmurp on February 28, 2014, 06:28:05 PM
Previous to version 3 the key binding script worked as I would expect. After upgrading when a button is "Pressed" via a bound key the button color changes to the "Hover" color and never changes back unless you hover over the button with the mouse and then hover away. Obviously, I can change this behavior by modifying the UIKeyBinding script directly, but I'm wondering if I'm doing something wrong elsewhere that may be causing this as I wouldn't imagine it's the intended behavior of the script?

Thanks!
Title: Re: Question Regarding UIKeyBinding in 3+
Post by: ArenMook on February 28, 2014, 06:33:42 PM
No it certainly isn't. I'll fix it, thanks.

P.S. You can fix it locally by changing line 106 in UIKeyBinding.cs from:
  1. UICamera.currentScheme = UICamera.ControlScheme.Controller;
to:
  1. UICamera.currentScheme = UICamera.ControlScheme.Touch;
Title: Re: Question Regarding UIKeyBinding in 3+
Post by: dwmurp on February 28, 2014, 09:22:36 PM
Thank you, sir! Excellent product and even better customer support.