Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Screen Autorotate To Portrait#

Screen / Screen Autorotate To Portrait

Description#

Compares the Autorotate To Portrait static property of Screen class to another value

Code#

// <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
{
    [Title("Screen Autorotate To Portrait")]
    [Category("Screen/Autorotate To Portrait")]
    [Description("Compares the Autorotate To Portrait static property of Screen class to another value")]

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

    [Serializable]
    public class GenConditionBool_Screen_CheckAutorotateToPortrait : Condition
    {

        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Screen");
            string member = TextUtils.ThemeAsKeyword("Autorotate To Portrait");
            return $"{className} {member}";
        }

        protected override bool Run(Args args)
        {
            return Screen.autorotateToPortrait;
        }
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.