diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-05-24 19:53:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-24 19:53:19 +0200 |
commit | af03e9c83018b47cb82da67e5f8e277b29b82d66 (patch) | |
tree | 4880b70a38730cde1a0c6879ec94326924190ae7 /doc/classes | |
parent | 215e43242c2a5b2ec5a8ccb4d26d716f965cbbd9 (diff) | |
parent | 660952a85773e959664376faf5c09e63aa613092 (diff) |
Merge pull request #48939 from Calinou/screen-orientation-use-enum
Use an enum to represent screen orientation in the Project Settings
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/ProjectSettings.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/classes/ProjectSettings.xml b/doc/classes/ProjectSettings.xml index 690c90a16e..f6ade5583e 100644 --- a/doc/classes/ProjectSettings.xml +++ b/doc/classes/ProjectSettings.xml @@ -494,8 +494,9 @@ <member name="display/window/energy_saving/keep_screen_on" type="bool" setter="" getter="" default="true"> If [code]true[/code], keeps the screen on (even in case of inactivity), so the screensaver does not take over. Works on desktop and mobile platforms. </member> - <member name="display/window/handheld/orientation" type="String" setter="" getter="" default=""landscape""> - Default orientation on mobile devices. + <member name="display/window/handheld/orientation" type="int" setter="" getter="" default="0"> + The default screen orientation to use on mobile devices. See [enum DisplayServer.ScreenOrientation] for possible values. + [b]Note:[/b] When set to a portrait orientation, this project setting does not flip the project resolution's width and height automatically. Instead, you have to set [member display/window/size/width] and [member display/window/size/height] accordingly. </member> <member name="display/window/ios/hide_home_indicator" type="bool" setter="" getter="" default="true"> If [code]true[/code], the home indicator is hidden automatically. This only affects iOS devices without a physical home button. |