- Home /
Question by
rupeshpamaihgari · Dec 26, 2013 at 05:39 PM ·
androidguiguitextureaccelerometershooter
How to set GUI X and Y point according to accelerometer input.?
I am new to unity..I am developing a shooter game in which my texture of sniper gun scope had to move according to accelerometer input in an android device. My basic doubt is how to set in Rect(x,y,width,height)x & y values based on input tilt acceleration of device..Can anybody please help me...thank you,.!
Comment