---
tags:
    - "Display, Resolution, Window, Monitor"
---

# Screen Autorotate To Landscape Right

[Screen](index.md) / **Screen Autorotate To Landscape Right**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :green_circle: Can Write

</div>

## Description

The Autorotate To Landscape Right static property of the Screen class

## Code

```cs
// <auto-generated>
// This script was automatically generated using the Visual Script Transpiler.
// Do not modify. Changes to this file will be lost when updating the package.
// </auto-generated>

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]
    [Set]

    [Title("Screen Autorotate To Landscape Right")]
    [Category("Screen/Autorotate To Landscape Right")]
    [Description("The Autorotate To Landscape Right static property of the Screen class")]

    [Image(typeof(IconScreen), ColorTheme.Type.TextLight)]
    [Keywords("Display, Resolution, Window, Monitor")]

    [Serializable]
    public class GenTypeBool_Screen_AutorotateToLandscapeRight : TypeBool
    {

        public override bool GetPreview(GameObject source)
        {
            return Screen.autorotateToLandscapeRight;
        }

        public override bool Get(Args args)
        {
            return Screen.autorotateToLandscapeRight;
        }

        public override void Set(bool value, Args args)
        {
            Screen.autorotateToLandscapeRight = (bool) value;
        }

        public override string ToString()
        {
            return $"Screen Autorotate To Landscape Right";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
```

