# BakeAsync()

> Starts an asynchronous bake job.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static bool BakeAsync()
```

### Returns

| Type                                                          | Description                                                                                                                              |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if the bake was successfully started. Will return false and print a warning message if it's not possible to start the bake. |

### Remarks

The progress can be monitored via [Lightmapping.isRunning](/engine/6000.0/script-reference/unityeditor/lightmapping/isrunning.md) property. [Lightmapping.bakeStarted](/engine/6000.0/script-reference/unityeditor/lightmapping/bakestarted.md) will be called when the bake starts, and [Lightmapping.bakeCompleted](/engine/6000.0/script-reference/unityeditor/lightmapping/bakecompleted.md) when it is done.

Only works in [Lightmapping.GIWorkflowMode.OnDemand](/engine/6000.0/script-reference/unityeditor/lightmapping/giworkflowmode/ondemand.md) mode.

For synchronous bakes see [Lightmapping.Bake](/engine/6000.0/script-reference/unityeditor/lightmapping/bake.md).
