# isBatchMode

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

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static bool isBatchMode { get; }
```

### Remarks

In batch mode, Unity runs from the command line without user interaction, typically used for automation (builds, tests, CI). For details, refer to [EditorCommandLineArguments](/engine/6000.0/manual/unity-editor/command-line-arguments/editor.md).

### Examples

```csharp
using UnityEngine;

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