Welcome,
Guest
. Please
login
or
register
.
October 03, 2024, 05:32:28 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIButton inside Scrollview stay in the over state. [Android]
« previous
next »
Print
Pages: [
1
]
Author
Topic: UIButton inside Scrollview stay in the over state. [Android] (Read 2192 times)
badawe
Jr. Member
Thank You
-Given: 8
-Receive: 7
Posts: 70
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
.
if
(
Application
.
platform
==
RuntimePlatform
.
IPhonePlayer
)
{
useMouse
=
false
;
useKeyboard
=
false
;
useController
=
false
;
}
if
(
Application
.
platform
==
RuntimePlatform
.
IPhonePlayer
||
Application
.
platform
==
RuntimePlatform
.
Android
)
{
useMouse
=
false
;
useKeyboard
=
false
;
useController
=
false
;
}
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UIButton inside Scrollview stay in the over state. [Android]