Detect change orientation - specific angle

Hi
I want to detect angle of phone rotation. I can detect with DeviceOrientation when phone is in Portrait or Landscape orientation but I wan to know also changes between like 1,2,3…45… 90 degrees.

Effect I want to achieve is rotating phone without rotating text. What I mean… Text should always stay in the same position without rotating. My idea is to decrease text rotation depends on phone rotation that way to user do not notice any change and could read text no matter phone orientation.
I want to also mention that I locked auto rotation because I need to do this from code.

Any ideas? If it is needed I can explain more. Just tell me what You need to understand and cover this issue.

This might help you : http://unity3d.com/learn/tutorials/modules/beginner/platform-specific/accelerometer-input

1 Like

Thank You :slight_smile: