I am currently working with Unity3D and I need to find out how to determine default device orientation (landscape or portrait) for both Android and iOS. What is the best way to achieve this through code (I'm working with c#) ?
Thanks for the help !
Note : I've seen the following post : How to check device natural (default) orientation on Android (i.e. get landscape for e.g., Motorola Charm or Flipout)
But I can't seem to make the code work (maybe I'm missing a file to import or something). Besides, I need a way to make this work with iOS as well !