Version: 2018.3 (switch to 2019.1)
LanguageEnglish
  • C#

Application.isBatchMode

public static bool isBatchMode;

Description

Returns true when Unity is launched with the -batchmode flag from the command line (Read Only).

using UnityEngine;

public class Example : MonoBehaviour { void Start() { if (Application.isBatchMode) { Debug.Log("In BatchMode"); } } }

Did you find this page useful? Please give it a rating: