Author Topic: UIButton inside Scrollview stay in the over state. [Android]  (Read 1926 times)

badawe

  • Jr. Member
  • **
  • Thank You
  • -Given: 8
  • -Receive: 7
  • Posts: 70
    • View Profile
UIButton inside Scrollview stay in the over state. [Android]
« 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.  

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIButton inside Scrollview stay in the over state. [Android]
« Reply #1 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.