Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SpotLight

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

Definition

public struct SpotLight

Fields

Value

Description

angularFalloffThe angular falloff model to use for baking the spot light.
colorThe direct light color.
coneAngleThe outer angle for the spot light.
entityIdThe light's entityId.
falloffThe falloff model to use for baking the spot light.
indirectColorThe indirect light color.
innerConeAngleThe inner angle for the spot light.
modeThe lightmode.
orientationThe light's orientation.
positionThe light's position.
rangeThe light's range.
shadowTrue if the light casts shadows, otherwise False.
sphereRadiusThe light's sphere radius, influencing soft shadows.