Add ability to change default Android screen orientation.

This commit is contained in:
Chandler Cox
2023-12-08 15:48:43 -06:00
parent 306dd43b18
commit df83491313
3 changed files with 63 additions and 1 deletions

View File

@@ -9,6 +9,37 @@
class Texture;
/// <summary>
/// Android screen orientation options.
/// </summary>
API_ENUM() enum class FLAXENGINE_API AndroidScreenOrientation
{
/// <summary>
/// "portrait" mode
/// </summary>
Portrait,
/// <summary>
/// "reversePortrait" mode
/// </summary>
PortraitReverse,
/// <summary>
/// "landscape" mode
/// </summary>
LandscapeRight,
/// <summary>
/// "reverseLandscape" mode
/// </summary>
LandscapeLeft,
/// <summary>
/// "fullSensor" mode
/// </summary>
AutoRotation,
};
/// <summary>
/// Android platform settings.
/// </summary>
@@ -29,6 +60,12 @@ API_CLASS(sealed, Namespace="FlaxEditor.Content.Settings") class FLAXENGINE_API
API_FIELD(Attributes="EditorOrder(100), EditorDisplay(\"General\")")
Array<String> Permissions;
/// <summary>
/// The default screen orientation.
/// </summary>
API_FIELD(Attributes = "EditorOrder(110), EditorDisplay(\"General\")")
AndroidScreenOrientation DefaultOrientation = AndroidScreenOrientation::AutoRotation;
/// <summary>
/// Custom icon texture to use for the application (overrides the default one).
/// </summary>