Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: grozzy39 on October 01, 2012, 10:21:05 AM
-
Hi
In our game we have implemented an orbit camera using the usual Update events etc. The problem then: when we are dragging widgets around this is obviously still orbiting the camera, something we don't want.
Question is what is the best approach to take to tackle this? We need some way to inform the orbit camera code that something is being dragged around.
TIA.
-
The problem is in how you implemented your orbit camera. I'm guessing you are reading Input events directly instead of relying on NGUI's OnDrag event. If accessing Input directly, add a check for UICamera.hoveredObject != null.
-
Brilliant! Thanks.