As the title suggest, I want to detect device orientation change at run time.
So that I have to write script for that.
Basically I am planning to develop 2d game that work on both orientation.
But how to detect that is basic question? Because I am pretty new to this engine.
I have other questions in mind.
On android devices, I want to run my game in landscape mode in tablet and in portrait mode in mobile (Small Devices).
On iOS devices, I want to run my game in landscape mode in iPad and in portrait mode in iPhone.
How to perform this through script?