Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


RectangleLight

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

Definition

public struct RectangleLight

Fields

Value

Description

colorThe direct light color.
entityIdThe light's entityId.
falloffThe falloff model to use for baking the rectangular light.
heightThe height of the rectangle light.
indirectColorThe indirect light color.
modeThe lightmode.
orientationThe light's orientation.
positionThe light's position.
rangeThe light's range.
shadowTrue if the light casts shadows, otherwise False.
widthThe width of the rectangle light.