LightBakeData Class

public class LightBakeData : MonoBehaviour

When performing light baking using the Automated Unity Light Baker (via the World Designer Tool), this component is added to Asset Chunks that use a Light Probe Group component. It stores data about where the Cell the Asset Chunks belong to was positioned at the time of the bake.

On Unity 2023.2 and greater, this data is used to calculate the offset of the Cells from their original baked position, which is then used to correctly position those Cells' Light Probes.

This component is added for all versions of Unity, even though the ability to position Light Probes at runtime is only available in Unity 2023.2 and greater versions. This enables this functionality to work (without having to re-bake) on prior versions in the event that Unity backports the runtime Light Probe additions, and it also allows you to upgrade your project to Unity 2023.2 or greater and have runtime light probe changing "just work", without needing to re-bake your lighting.

Properties

Name Type Description
BakePosition Vector3Double

Gets the position of this Asset Chunk's Cell at the time it was baked.