Hi guys !
I’m struggling with my app because I’m trying to find a solution to make PC Standalone build for a Surface Pro. I have specific reasons to do not build a UWP game.
I would like to :
- Detect my game is currently running on a Surface Pro. As far as I know, Application.platform and DeviceType won’t help because the latter returns “Desktop” and not “Handheld”. I also tried using SystemInfo.supportsGyroscope or SystemInfo.supportsAccelerometer but it returns false on the device…
- Find a solution to force full screen landscape mode on start. Indeed, if I switch from landscape to portrait mode on the Surface, the resolution changes and when I go back to landscape mode the resolution is saved to the portrait one… I found a solution to lock screen autorotation and force landscape with this, it is ok if I start the game in landscape mode, but if I start the game in portrait mode, it still goes wrong with the resolution… and, Screen.orientation returns “Portrait” whether I start in portrait or Landscape mode…
Any ideas…? Thanks