Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LightProbesQuery

Thread-safe struct for batch sampling Light Probes in a Scene.
Read time 1 minuteLast updated 4 days ago

Definition

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

IsCreatedThis property indicates whether target query data is valid.

Methods

Method

Description

CalculateInterpolatedLightAndOcclusionProbeCalculate light probe and occlusion probe at the given world space position.
CalculateInterpolatedLightAndOcclusionProbesCalculate light probes and occlusion probes at the given world space positions.
DisposeUse this method to clean up the memory this query references.