M
M
max_vr2017-04-15 19:19:19
C++ / C#
max_vr, 2017-04-15 19:19:19

What is the best way to implement screen rotation in unity?

Good afternoon!
Given: 2D application written in Unity, containing 1 scene with an aspect ratio of 9:16.
It is necessary to implement the rotation of the screen to horizontal orientation by pressing the button, in the existing scene, without creating additional ones. There are 2 pages (objects): vertical and horizontal, in theory one should replace the other, this is easy to implement, but is it possible to "flip" the scene itself from the code? Thanks in advance :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex Maximovich, 2017-04-16
@max_vr

https://docs.unity3d.com/ScriptReference/Screen-or...
Try changing the application orientation right away. Perhaps this is what you need, the only question is how your application is adapted to changing orientation

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question