Returns true when Unity is launched with the -batchmode flag from the command line (Read Only).
In batch mode, Unity runs from the command line without user interaction, typically used for automation (builds, tests, CI). For details, refer to EditorCommandLineArguments.
using UnityEngine;
public class Example : MonoBehaviour { void Start() { if (Application.isBatchMode) { Debug.Log("In BatchMode"); } } }