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 9 days ago

Definition

public struct DirectionalLight

Fields

Value

Description

colorThe direct light color.
entityIdThe light's entityId.
indirectColorThe indirect light color.
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.