LightProbesQuery
Thread-safe struct for batch sampling Light Probes in a Scene.
Read time 1 minuteLast updated 4 days ago
Definition
- Type: Struct
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Implements: IDisposable
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) | "Constructor for creating Light Probe sample queries." |
Properties
Property | Description |
|---|---|
| IsCreated | This property indicates whether target query data is valid. |
Methods
Method | Description |
|---|---|
| CalculateInterpolatedLightAndOcclusionProbe | Calculate light probe and occlusion probe at the given world space position. |
| CalculateInterpolatedLightAndOcclusionProbes | Calculate light probes and occlusion probes at the given world space positions. |
| Dispose | Use this method to clean up the memory this query references. |