- Home /
Game Center Login ignores Unity default orientation, resets project to devices orientation
Unity 5.3
using UnityEngine.SocialPlatforms;
Social.localUser.Authenticate(ProcessAuthentication);
If you're device is logged into Game Center, the welcome screen pops up in the same orientation as your project settings.
But if you are not logged in to Game Center, the Login Screen pops up in whatever orientation the device happens to be in, and it actually resets your project to that orientation.
To fix this, I know I'll need to modify some code in Xcode. Has anyone had experience with this?
BU$$anonymous$$P
I have the exact same issue. Any fixes for this?
Hi @raglet and other new-comers, I have found the solution of this problem here:
https://unionassets.com/iosnative/disable-autorotation-440
Just follow the link as it is. This is not Unity's problem, it is XCode's because XCode compiles the code and then sets orientation at all sides so you have to remove it from the XCode.
Regards, Uzair