# BakeSelectedAsync()

> Starts an asynchronous bake job for the selected objects.

## Definition

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

> **Warning:**
>
> **Removed.** BakeSelectedAsync has been deprecated. Use BakeAsync instead
>
> **Upgrade to** [Lightmapping.BakeAsync](/engine/6000.5/script-reference/unityeditor/lightmapping/bakeasync.md)

```csharp
public static bool BakeSelectedAsync()
```

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

The progress can be monitored via [Lightmapping.isRunning](/engine/6000.5/script-reference/unityeditor/lightmapping/isrunning.md) property.
