Question by
ptblk · Apr 05, 2016 at 09:51 AM ·
rotationsceneorientation
Selective Mobile screen rotation
Hi is there a way to have some screens only work in landscape mode and others in autorotate.
My project has catalogue menu as a scene that i want to keep in landscape mode (no rotation) at all times, but when i click to load an item from the catalogue (new scene) i want that scene to be able to rotate.
Thanks
Comment
Answer by See_Sharp · Apr 05, 2016 at 10:06 AM
Yes:
Screen.orientation = ScreenOrientation.Portrait;
Putting it under void start or awake and an empty object only over rides the default unity setting and causing all scenes to be the same. $$anonymous$$y question pertained to having the ability to set each scene individually
Thanks