Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


DirectionalLight

A helper structure used to initialize a LightDataGI structure as a directional light.
Read time 1 minuteLast updated 11 days ago

Definition

public struct DirectionalLight

Fields

Value

Description

colorThe direct light color.
entityIdThe light's entityId.
indirectColorThe indirect light color.
indirectMultiplierThe multiplier for indirect light intensity. Corresponds to Light.bounceIntensity.
modeThe lightmode.
orientationThe light's orientation. Only relevant for cookie placement.
penumbraWidthRadianThe penumbra width for soft shadows in radians.
positionThe light's position. Only relevant for cookie placement.
shadowTrue if the light casts shadows, otherwise False.