# TetrahedralizeAsync()

> Asynchronously tetrahedralize all currently loaded LightProbe positions.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static void TetrahedralizeAsync()
```

### Remarks

Call this function to asynchronously calculate a Delaunay tetrahedralization of all currently loaded LightProbe positions, and update the [LightProbes](/engine/6000.0/script-reference/unityengine/lightprobes.md) object with the result. Note that Unity does not raise an event when this asynchronous method completes.

Call this method after you load a Scene with [LoadSceneMode.Additive](/engine/6000.0/script-reference/unityengine/scenemanagement/loadscenemode/additive.md), or unload a Scene with [SceneManager.UnloadSceneAsync](/engine/6000.0/script-reference/unityengine/scenemanagement/scenemanager/unloadsceneasync.md). Note that updating the tetrahedral tessellation is CPU-intensive. For more information, see [Light Probes and Scene loading](/engine/6000.0/manual/lighting-overview/direct-and-indirect-lighting/light-probes/and-scene-loading.md).

```csharp
using UnityEngine;
using UnityEngine.SceneManagement;

public class TetrahedralizeAsyncExample : MonoBehaviour
{
    void Start()
    {
        // Additively load a Scene containing light probes
        SceneManager.LoadScene("ExampleScene", LoadSceneMode.Additive);

        // Force Unity to asynchronously regenerate the tetrahedral tesselation for all loaded Scenes
        LightProbes.TetrahedralizeAsync();
    }
}
```

Additional Resources: [LightProbes.Tetrahedralize](/engine/6000.0/script-reference/unityengine/lightprobes/tetrahedralize.md), [Light Probes in the Unity Manual](/engine/6000.0/script-reference/unityengine/lightprobes.md), [Lightmapping.Tetrahedralize](/engine/6000.0/script-reference/unityeditor/lightmapping/tetrahedralize.md).
