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 Brightness#

Screen / Screen Brightness

  • Can Read

  • Can Write

Description#

The Brightness static property of the Screen class

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
{
    [Get]
    [Set]

    [Title("Screen Brightness")]
    [Category("Screen/Brightness")]
    [Description("The Brightness static property of the Screen class")]

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

    [Serializable]
    public class GenTypeNumber_Screen_Brightness : TypeNumber
    {

        public override double GetPreview(GameObject source)
        {
            return Screen.brightness;
        }

        public override double Get(Args args)
        {
            return Screen.brightness;
        }

        public override void Set(double value, Args args)
        {
            Screen.brightness = (float) value;
        }

        public override string ToString()
        {
            return $"Screen Brightness";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.