Version: 2022.3

LightProbesQuery

struct in UnityEngine

切换到手册

描述

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

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.

变量

IsCreatedThis property indicates whether target query data is valid.

构造函数

LightProbesQuery"Constructor for creating Light Probe sample queries."

公共函数

CalculateInterpolatedLightAndOcclusionProbeCalculate light probe and occlusion probe at the given world space position.
CalculateInterpolatedLightAndOcclusionProbes计算给定世界空间位置处的光照探针和遮挡探针。
DisposeUse this method to clean up the memory this query references.