Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: NeatWolf on November 20, 2014, 04:51:05 PM

Title: Using FingerGestures with NGUI - Screen to pixel from/to coordinates conversion
Post by: NeatWolf on November 20, 2014, 04:51:05 PM
Hi,
I was trying to interface FingerGestures with NGUI.

Fingergestures (that I need to catch swipes and drags) works with Screen coordinates while NGUI (scaling Style constrained) seems to work another way. Are there any utility functions that allows me to go from screen to local/global NGUI units and vice versa?

Thanks for your time.
Title: Re: Using FingerGestures with NGUI - Screen to pixel from/to coordinates conversion
Post by: ArenMook on November 20, 2014, 09:19:49 PM
Just convert from one to the other. UIRoot has a pixelSizeAdjustment value you can multiply (or divide) by, depending on which way you're going.