- Home /
Resolution independence
Hi,
I have drag mechanic in my game and I want to have same experience in all devices. I've done this before in another game engine and now that Unity gives us Dpi with Screen.DPI, it should be much easier to achieve, but I can't figure it out for the love of the god.
My theory is you have to divide the delta movement of touch with Screen.Dpi to normalize the movement and make it same across devices with different screen sizes and dpi's:
(touch0.deltaPosition.x / dpi) * SENSITIVITY * Time.deltaTime;
But this doesn't work. Would someone please tell me why?
I've done extensive search on this but surprisingly nothing much can be found.
Thanks in advance and regards.
Your answer
Follow this Question
Related Questions
Screens.dpi different than manufacturer number 1 Answer
Display Activity indicator center 0 Answers
big terrain performance && mobile 1 Answer
C++ windows DLL and Android? 1 Answer
I'm looking for help with enemy AI scripting and animations. 1 Answer