Omnidirectional light, such as a light bulb or a candle.
    public class OmniLight : Light

An Omnidirectional light is a type of Light that emits light in all directions. The light is attenuated by distance and this attenuation can be configured by changing its energy, radius, and attenuation parameters.

Inheritance Chain


    public OmniLight()


    public float OmniAttenuation { get; set; }

The light’s attenuation (drop-off) curve. A number of presets are available in the Inspector.

    public float OmniRange { get; set; }

Maximum distance the light affects.

    public ShadowDetail OmniShadowDetail { get; set; }

See ShadowDetail.

    public ShadowMode OmniShadowMode { get; set; }

See ShadowMode.


    public ShadowDetail GetShadowDetail()

Getter for OmniShadowDetail

    public ShadowMode GetShadowMode()

Getter for OmniShadowMode

    public void SetShadowDetail(ShadowDetail detail)

Setter for OmniShadowDetail

    public void SetShadowMode(ShadowMode mode)

Setter for OmniShadowMode

Inner Types


Name Value Description
Vertical 0  
Horizontal 1  


Name Value Description
DualParaboloid 0  
Cube 1