Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


LightingDataAsset

The lighting data asset used by the active Scene.
Read time 4 minutesLast updated 5 days ago

Definition

  • Type: Class
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
  • Inherits from: Object
public sealed class LightingDataAsset : Object

Remarks

Please note that modifying this value currently does not affect the Scene immediately, the lighting data is only patched into the active Scene when loading the Scene.

Constructors

Constructor

Description

LightingDataAsset(UnityEngine.SceneManagement.Scene)Constructs an empty LightingDataAsset associated with specific scene.

Methods

Method

Description

GetAmbientProbeGets the ambient probe stored in a LightingDataAsset in L2 spherical harmonic encoding.
GetDefaultReflectionCubemapGets the default reflection cubemap stored in a LightingDataAsset.
SetAmbientProbeSets the ambient probe stored in a LightingDataAsset.
SetDefaultReflectionCubemapSets the default reflection cubemap stored in a LightingDataAsset.
SetLightsOverwrites the Lights referenced by a LightingDataAsset.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.