Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started by: yuewah on April 29, 2012, 09:38:20 AM
-
Could you make a simple scene on how to do drag camera for RTS game using NGUI ?
-
Place a UICamera script on your Main Camera and choose "Nothing" for its Event Mask. After that set UICamera.fallThrough to a game object that has your camera-dragging logic on it, and add OnDrag() to it, doing what you want inside.
-
it works as expected. How about rotating camera and zooming using multi-touch , is it possible or not ? anyway, I will give it a try.
-
You can detect different touches by checking UICamera.lastTouchID.