Welcome,
Guest
. Please
login
or
register
.
December 11, 2024, 11:36:28 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UICamera.currentTouch getting null
« previous
next »
Print
Pages: [
1
]
Author
Topic: UICamera.currentTouch getting null (Read 2011 times)
pawankumar113
Newbie
Thank You
-Given: 1
-Receive: 0
Posts: 11
UICamera.currentTouch getting null
«
on:
December 17, 2014, 03:07:26 AM »
I am using UICamera.currentTouch.pos in my own function but i am getting null exception.
I don't know why.
Any help will be appreciated.
Thanks.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: UICamera.currentTouch getting null
«
Reply #1 on:
December 17, 2014, 03:20:14 PM »
Because UICamera.currentTouch is only valid during NGUI event callbacks, such as OnPress, OnClick, etc.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
UICamera.currentTouch getting null