# LightProbesQuery

> Thread-safe struct for batch sampling Light Probes in a Scene.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public struct LightProbesQuery : IDisposable
```

## Remarks

This struct allows for sampling Light Probes from a job or a thread. If you load a scene additively, you must call LightProbes.Tetrahedralize to include its Light Probes in the batch sample.

## Constructors

| Constructor                                                                                                           | Description                                            |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------ |
| [LightProbesQuery(Unity.Collections.Allocator)](/engine/6000.0/script-reference/unityengine/lightprobesquery/ctor.md) | "Constructor for creating Light Probe sample queries." |

## Properties

| Property                                                                               | Description                                                 |
| -------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [IsCreated](/engine/6000.0/script-reference/unityengine/lightprobesquery/iscreated.md) | This property indicates whether target query data is valid. |

## Methods

| Method                                                                                                                                                       | Description                                                                     |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------- |
| [CalculateInterpolatedLightAndOcclusionProbe](/engine/6000.0/script-reference/unityengine/lightprobesquery/calculateinterpolatedlightandocclusionprobe.md)   | Calculate light probe and occlusion probe at the given world space position.    |
| [CalculateInterpolatedLightAndOcclusionProbes](/engine/6000.0/script-reference/unityengine/lightprobesquery/calculateinterpolatedlightandocclusionprobes.md) | Calculate light probes and occlusion probes at the given world space positions. |
| [Dispose](/engine/6000.0/script-reference/unityengine/lightprobesquery/dispose.md)                                                                           | Use this method to clean up the memory this query references.                   |
