Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: badawe on October 14, 2014, 01:30:37 PM

Title: UIButton inside Scrollview stay in the over state. [Android]
Post by: badawe on October 14, 2014, 01:30:37 PM
Hey just a heads up, I've a lot of buttons inside and ScrollView and everything works fine on editor, but running on the Android, they stay on the Over state when I drag outside the button collider.

To fix that is just add the Android platform in to this statement too, from:

Line: 1128 from UICamera.
  1. if (Application.platform == RuntimePlatform.IPhonePlayer)
  2. {
  3.       useMouse = false;
  4.       useKeyboard = false;
  5.       useController = false;
  6. }
  7.  


  1. if (Application.platform == RuntimePlatform.IPhonePlayer || Application.platform == RuntimePlatform.Android)
  2. {
  3.       useMouse = false;
  4.       useKeyboard = false;
  5.       useController = false;
  6. }
  7.  
Title: Re: UIButton inside Scrollview stay in the over state. [Android]
Post by: ArenMook on October 14, 2014, 03:24:48 PM
It's like that intentionally, because some android devices do have mouse input. Stylus, for example. Ouya is an android device with controller input.

Bottom line is, Android is complicated -- choose the input options you need on the UICamera itself.