Home > other >  Unity ios, somehow the screen to switch
Unity ios, somehow the screen to switch

Time:09-20

Fixed when there is a demand: in a scene for the landscape, switch to the scene after the b can only be vertical screens, landscape, from a to b default is now only after shaking phone scenario b to switch to portrait,
Is there any way can enter the scene when the default b is vertical screen, no longer need to swing device to switch,

CodePudding user response:

Dynamic in the program Settings screen direction:
//the following code sets the direction of the screen to horizontally 
Screen. The orientation=ScreenOrientation. LandscapeLeft;

CodePudding user response:

this is ios and android universal, but sometimes you project the SDK may have conflicts with this
  • Related