# Sandbox.SceneUtility.RunInBatchGroup

```csharp
static void RunInBatchGroup(System.Action action)
```

> **Obsolete.** Use Scene.BatchGroup() instead

Run an action inside a batch group. A batchgroup is used with GameObject and Components to
make sure that their OnEnable/OnDisable and other callbacks are called in a deterministic order,
and that they can find each other during creation.

### Parameters

- `action` (`System.Action`)

Declared in [Sandbox.SceneUtility](/api/Sandbox.SceneUtility).
Assembly: `Sandbox.Engine`.
