Skip to main content
added 12 characters in body; edited title
Source Link
user1430
user1430

How todo I make my Unity application quit programmatically?

I made a script and I want to make my game quit, but this does not work. How should I go to make the app quit?

using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class LevelManager : MonoBehaviour {
  public int Index;

  public void SceneLoad()
  {
    SceneManager.LoadScene(Index);
  }

  public void Quit()
  {
    Application.Quit;
  }
}

How to make my Unity application quit programmatically?

I made a script and I want to make my game quit, but this does not work. How should I go to make the app quit?

using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class LevelManager : MonoBehaviour {
  public int Index;

public void SceneLoad()
{
    SceneManager.LoadScene(Index);
}

public void Quit()
{
    Application.Quit;
}
}

How do I make my Unity application quit programmatically?

I made a script and I want to make my game quit, but this does not work. How should I go to make the app quit?

using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class LevelManager : MonoBehaviour {
  public int Index;

  public void SceneLoad()
  {
    SceneManager.LoadScene(Index);
  }

  public void Quit()
  {
    Application.Quit;
  }
}
Fixed the title.
Source Link
Vaillancourt
  • 16.4k
  • 17
  • 56
  • 61

Application.Quit doesn't work How to make my Unity application quit programmatically?

Hello iI made a script and iI want to make my game quit, but this does not work. How should I go to make the app quit?

using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class LevelManager : MonoBehaviour {
  public int Index;

public void SceneLoad()
{
    SceneManager.LoadScene(Index);
}

public void Quit()
{
    Application.Quit;
}
}

Application.Quit doesn't work

Hello i made a script and i want to make my game quit

using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class LevelManager : MonoBehaviour {
  public int Index;

public void SceneLoad()
{
    SceneManager.LoadScene(Index);
}

public void Quit()
{
    Application.Quit;
}
}

How to make my Unity application quit programmatically?

I made a script and I want to make my game quit, but this does not work. How should I go to make the app quit?

using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class LevelManager : MonoBehaviour {
  public int Index;

public void SceneLoad()
{
    SceneManager.LoadScene(Index);
}

public void Quit()
{
    Application.Quit;
}
}
Source Link
HearPcGaming
  • 31
  • 1
  • 3
  • 10

Application.Quit doesn't work

Hello i made a script and i want to make my game quit

using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;

public class LevelManager : MonoBehaviour {
  public int Index;

public void SceneLoad()
{
    SceneManager.LoadScene(Index);
}

public void Quit()
{
    Application.Quit;
}
}