# GenerateInBackground()

> Used to compute static occlusion culling data asynchronously.

## Definition

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

```csharp
public static bool GenerateInBackground()
```

### Returns

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

### Remarks

The memory limit (specified in bytes) is a hint to the PVS baking system about the likely memory requirements.

Additional Resources: [StaticOcclusionCulling.Compute](/engine/6000.0/script-reference/unityeditor/staticocclusionculling/compute.md), [StaticOcclusionCulling.Cancel](/engine/6000.0/script-reference/unityeditor/staticocclusionculling/cancel.md), [StaticOcclusionCulling.isRunning](/engine/6000.0/script-reference/unityeditor/staticocclusionculling/isrunning.md).
