Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Input.deviceOrientation == DeviceOrientation.LandscapeRight)
- {
- Screen.orientation = ScreenOrientation.LandscapeRight;
- }
- else if (Input.deviceOrientation == DeviceOrientation.LandscapeLeft)
- {
- Screen.orientation = ScreenOrientation.LandscapeLeft;
- }
Advertisement
Add Comment
Please, Sign In to add comment