- Home /
game center showing in portrait mode when login fails
Hello,
My game is in landscape mode but when I click on game center button and if its not logged in my whole game is converting into portrait mode.Is there any solutions?
I think you need to include more information. I'm totally unfamiliar with what "game center" is; perhaps they have their own community which could assist you.
I am using GameCentePlatform class ( http://docs.unity3d.com/ScriptReference/SocialPlatforms.GameCenter.GameCenterPlatform.html) to integrate ios leaderboard.$$anonymous$$y game is in landscape mode. I used methods from Social classes. but when I run my game and my iphone gamecenter is not logged in . It automatically showing my game in portrait mode. I have seen this issue in many games too. Is there any solution for that?
Answer by andorfy · Feb 29, 2016 at 04:13 PM
I found a solution. I set the Default Orinetation to Auto Rotation, and in the Allowed Orientations I only checked the Portrait (this was what I need only). Now when I rotate the phone when the GameCenter window is opened it rotates accoring to the phone state, but when I close it the game stays in portrait mode.