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

Is Focused#

Application / Is Focused

Description#

Compares the Is Focused static property of Application 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("Is Focused")]
    [Category("Application/Is Focused")]
    [Description("Compares the Is Focused static property of Application class to another value")]
    
    [Image(typeof(IconCog), ColorTheme.Type.TextLight)]
    [Keywords("App, Game, Settings, Configuration")]
    
    [Serializable]
    public class GenConditionBool_Application_CheckIsFocused : Condition
    {
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Application");
            string member = TextUtils.ThemeAsKeyword("Is Focused");
            return $"{className} {member}";
        }
        
        protected override bool Run(Args args)
        {
            return Application.isFocused;
        }
    }
}

Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.