I don’t know if this is a bug or not, but kind of feels like one. Thought I’d check here first.
Specs:
Xcode 6.3.1
Unity 5.1.0f3
iPad Air 2 iOS 8.3
iPhone 5S iOS 8.3
Issue:
Screen.orientation returns Unknown (which isn’t even listed as an alternative in the online documentations) when called in the Start() method from a script in the first scene (have tried the script on the default camera and an empty GameObject). Calling Screen.orientation in Update() returns Unknown for the first 1-2 frames, after which it starts to return the correct orientation. This is regardless of whether or not the default orientation is set to a specific orientation or automatic. Calling Screen.orientation in the non-first scene seem to work.
Seems like the orientation isn’t until after the app has run for a while, which kind of seems strange (even more so when the orientation is explicitly set). Working as intended?