# Sandbox.Scene.BatchGroup

```csharp
System.IDisposable BatchGroup()
```

Collects anything inside into 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. [Sandbox.GameObject.NetworkSpawn](/api/Sandbox.GameObject/NetworkSpawn) calls will also be batched.

### Returns

`System.IDisposable`

Declared in [Sandbox.Scene](/api/Sandbox.Scene).
Assembly: `Sandbox.Engine`.
