ドキュメント

Unity Engine

Unity Engine

SetLights(Light[])

Overwrites the Lights referenced by a LightingDataAsset.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public void SetLights(Light[] lights)

Parameters

lights

The array of Lights to overwrite the LightingDataAssets storage with.

Remarks

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.