Version: 2022.3
LanguageEnglish
  • C#

LightProbesQuery

struct in UnityEngine

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

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.

Properties

IsCreatedThis property indicates whether target query data is valid.

Constructors

LightProbesQuery"Constructor for creating Light Probe sample queries."

Public Methods

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.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961