alexsosnovskiy

Default orientation[Unity3d]

Aug 27th, 2013
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.26 KB | None | 0 0
  1. if (Input.deviceOrientation == DeviceOrientation.LandscapeRight)
  2. {
  3.     Screen.orientation = ScreenOrientation.LandscapeRight;
  4. }
  5.  
  6. else if (Input.deviceOrientation == DeviceOrientation.LandscapeLeft)
  7. {
  8.     Screen.orientation = ScreenOrientation.LandscapeLeft;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment