Welcome,
Guest
. Please
login
or
register
.
May 28, 2023, 02:50:36 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
problem with UICamera is set to Use Touch only.
« previous
next »
Print
Pages: [
1
]
Author
Topic: problem with UICamera is set to Use Touch only. (Read 2272 times)
yuewah
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 180
problem with UICamera is set to Use Touch only.
«
on:
May 20, 2012, 10:44:13 PM »
If UICamera is set to Use Touch only, Hover color of UIButton remains unchanged while playing in editor.
Logged
loopyllama
Guest
Re: problem with UICamera is set to Use Touch only.
«
Reply #1 on:
May 20, 2012, 11:37:16 PM »
touch is for mobile devices. you cannot detect a finger hovering above a mobile device. so on hover does nothing when your mouse events are disabled on the camera.
Logged
yuewah
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 180
Re: problem with UICamera is set to Use Touch only.
«
Reply #2 on:
May 21, 2012, 12:58:31 AM »
yes, I understand it. I think it should disable hover if "use Touch" is set only for UICamera while playing in editor.
Logged
loopyllama
Guest
Re: problem with UICamera is set to Use Touch only.
«
Reply #3 on:
May 21, 2012, 12:15:40 PM »
Yeah that sounds pretty good.
Try:
UICamera.cs line 896, change:
if
(
currentTouch
.
pressed
==
mHover
)
to
if
(
currentTouch
.
pressed
==
mHover
&&
useMouse
)
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
problem with UICamera is set to Use Touch only.