فهرست منبع

Document how to support portrait and landscape in Multiple resolutions (#4872)

Hugo Locurcio 4 سال پیش
والد
کامیت
9919b8a4ca
1فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 12 0
      tutorials/rendering/multiple_resolutions.rst

+ 12 - 0
tutorials/rendering/multiple_resolutions.rst

@@ -227,6 +227,18 @@ to the region outside the blue frame you see in the 2D editor.
 
    .. image:: img/stretch_viewport_expand.gif
 
+.. tip::
+
+    To support both portrait and landscape mode with a similar automatically
+    determined scale factor, set your project's base resolution to be a *square*
+    (1:1 aspect ratio) instead of a rectangle. For instance, if you wish to design
+    for 1280×720 as the base resolution but wish to support both portrait and
+    landscape mode, use 720×720 as the project's base window size in the
+    Project Settings.
+
+    To allow the user to choose their preferred screen orientation at run-time,
+    remember to set **Display > Window > Handheld > Orientation** to ``sensor``.
+
 Stretch Shrink
 ^^^^^^^^^^^^^^