Prevent auto rotation in Unity iOS



I’m building a game in Unity using the Twitter SDK to share via a Tweet. My game only supports landscape, and this works fine while the game is running. However, when I open the Twitter sharing card on iOS, the card then allows the display to rotate to portrait. Does anyone know how I can prevent this?




As long as the user doesn’t rotate his/her phone back to portrait mode, the composer stays in landscape mode along with the game. However currently I am not aware of a working solution to lock it to landscape mode.


OK, thanks for the reply. I figured last night that I could put a background behind the composer that rotates properly with the screen so it shouldn’t be too much of a problem.