Welcome,
Guest
. Please
login
or
register
.
June 12, 2026, 04:29:49 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UICamera.touchCount inconsistent between Editor and Mobile Device
« previous
next »
Print
Pages: [
1
]
Author
Topic: UICamera.touchCount inconsistent between Editor and Mobile Device (Read 4753 times)
yuewah
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 180
UICamera.touchCount inconsistent between Editor and Mobile Device
«
on:
June 13, 2013, 09:48:09 PM »
1. Press UIButton, UICamera.touchCount = 1 ( Editor ), 1 (Device )
2. Press In Empty Area, UICamera.touchCount = 0 ( Editor ), 1 ( Device )
Logged
yuewah
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 180
Re: UICamera.touchCount inconsistent between Editor and Mobile Device
«
Reply #1 on:
June 14, 2013, 03:40:48 AM »
It would be a fix for UICamera.cs
static
public
int
touchCount
{
get
{
int
count
=
0
;
for
(
int
j
=
0
;
j
<
mTouches
.
Count
;
++
j
)
if
(
mTouches
[
j
]
.
pressed
!=
null
)
++
count
;
for
(
int
i
=
0
;
i
<
mMouse
.
Length
;
++
i
)
if
(
mMouse
[
i
]
.
pressed
!=
null
)
++
count
;
if
(
mController
.
pressed
!=
null
)
++
count
;
return
count
;
}
}
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UICamera.touchCount inconsistent between Editor and Mobile Device
«
Reply #2 on:
June 14, 2013, 05:15:26 PM »
Fair enough, I will add this in, thanks.
Logged
yuewah
Full Member
Thank You
-Given: 0
-Receive: 0
Posts: 180
Re: UICamera.touchCount inconsistent between Editor and Mobile Device
«
Reply #3 on:
June 17, 2013, 09:41:39 PM »
Could you add the following properties in UICamera.cs ?
static
public
int
dragCount
{
get
{
int
count
=
0
;
for
(
int
j
=
0
;
j
<
mTouches
.
Count
;
++
j
)
{
if
(
mTouches
[
j
]
.
dragged
!=
null
)
++
count
;
}
for
(
int
i
=
0
;
i
<
mMouse
.
Length
;
++
i
)
if
(
mMouse
[
i
]
.
dragged
!=
null
)
++
count
;
if
(
mController
.
dragged
!=
null
)
++
count
;
return
count
;
}
}
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UICamera.touchCount inconsistent between Editor and Mobile Device
«
Reply #4 on:
June 17, 2013, 09:45:24 PM »
Certainly.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UICamera.touchCount inconsistent between Editor and Mobile Device