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

# Quit

[Application](index.md) / **Quit** ExitCode

## Description

Executes the Quit static method of the Application class

## Parameters

| Name | Description |
| :--- | :---------- |
| Exit Code |  |

## 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("Quit")]
    [Category("Application/Quit", "ExitCode")]
    [Description("Executes the Quit static method of the Application class")]
    
    [Image(typeof(IconCog), ColorTheme.Type.TextLight)]
    [Keywords("App, Game, Settings, Configuration")]
    
    [Parameter("Exit Code")]
    
    [Serializable]
    public class GenInstructionApplication_Quit_1_IntExitCode : Instruction
    {
        [SerializeField] private GetInteger m_ExitCode = new GetInteger();
        
        protected override string GetTitle(GameObject source)
        {
            string className = TextUtils.ThemeAsKeyword("Application");
            string method = TextUtils.ThemeAsKeyword("Quit");
            return $"{className} {method} ({this.m_ExitCode})";
        }
        
        protected override Awaitable Run(Args args)
        {
            Application.Quit(
                (int) this.m_ExitCode.Get(args)
            );
            
            return Done;
        }
    }
}


```

