Welcome,
Guest
. Please
login
or
register
.
May 09, 2026, 12:31:59 AM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
bug report in UICamera.cs
« previous
next »
Print
Pages: [
1
]
Author
Topic: bug report in UICamera.cs (Read 2726 times)
Gillissie
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 48
bug report in UICamera.cs
«
on:
August 23, 2012, 12:00:35 PM »
This code in UICamera.cs needs to have the nullcheck on currentTouch.pressed to avoid null reference errors if the clicked object was deleted upon the first click:
if
(
currentTouch
.
clickTime
+
0
.
25f
>
time
&&
currentTouch
.
pressed
!=
null
)
{
currentTouch
.
pressed
.
SendMessage
(
"OnDoubleClick"
, SendMessageOptions
.
DontRequireReceiver
)
;
}
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: bug report in UICamera.cs
«
Reply #1 on:
August 23, 2012, 07:53:18 PM »
Are you running some old version? That code doesn't exist. Everything goes through the Notify function now.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
bug report in UICamera.cs