Question by
Mihaeru · Dec 07, 2016 at 01:46 PM ·
androidrotationiosif-statementsorientation
if the Android/ios device rotate (x) degrees do animation
Hello, I'm using Input.accelerometer.x with if statement to make an animation when the device rotates 90º (like put the smartphone screen in landscape) but it doesn't work very well because the animation is playing sometimes when I only move the device without rotating. I want to know if there is a property to know how many degrees the device is turned or something similar that helps me to do what I want.
Comment