---
tags:
    - "App, Game, Settings, Configuration"
---

# Run In Background

[Application](index.md) / **Run In Background**

## Description

Compares the Run In Background static property of Application class to another value

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


```

