# Compute()

> Used to generate static occlusion culling data.

## Definition

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

```csharp
public static bool Compute()
```

### Returns

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

### Remarks

This function will run asynchronously until the data is generated but you can check the status of the computation using the [StaticOcclusionCulling.isRunning](/engine/6000.0/script-reference/unityeditor/staticocclusionculling/isrunning.md) property.

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

Additional Resources: [StaticOcclusionCulling.GenerateInBackground](/engine/6000.0/script-reference/unityeditor/staticocclusionculling/generateinbackground.md), [StaticOcclusionCulling.isRunning](/engine/6000.0/script-reference/unityeditor/staticocclusionculling/isrunning.md).
