LightingDataAsset.SetLights

Declaration

public void SetLights(Light[] lights);

Parameters

lights The array of Lights to overwrite the LightingDataAssets storage with.

Description

Overwrites the Lights referenced by a LightingDataAsset.

This method can be used to change per-light data stored in the Lighting Data Asset without having to re-bake the scene. Most of this data exists in Light.bakingOutput.


Did you find this page useful? Please give it a rating: