# Sandbox.BakedLightmap.Bake

```csharp
System.Threading.Tasks.Task Bake(System.Threading.CancellationToken ct = null)
```

Bake every mesh and lightmapped model in the scene into one lightmap, saved beside the scene. Throws if it
can't or it's cancelled.

### Parameters

- `ct` (`System.Threading.CancellationToken`), default `null`

### Returns

`System.Threading.Tasks.Task`

Declared in [Sandbox.BakedLightmap](/api/Sandbox.BakedLightmap).
Assembly: `Sandbox.Engine`.
