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

# Back Button Leaves App

[Settings](../index.md) / [Application](index.md) / **Back Button Leaves App**

<div class="grid cards" markdown>

* :green_circle: Can Read

* :green_circle: Can Write

</div>

## Description

The Back Button Leaves App static property of the Application 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("Back Button Leaves App")]
    [Category("Settings/Application/Back Button Leaves App")]
    [Description("The Back Button Leaves App static property of the Application class")]

    [Image(typeof(IconCog), ColorTheme.Type.TextLight)]
    [Keywords("App, Game, Settings, Configuration")]

    [Serializable]
    public class GenTypeBool_Application_BackButtonLeavesApp : TypeBool
    {

        public override bool GetPreview(GameObject source)
        {
            return Application.backButtonLeavesApp;
        }

        public override bool Get(Args args)
        {
            return Application.backButtonLeavesApp;
        }

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

        public override string ToString()
        {
            return $"Application Back Button Leaves App";
        }

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

