Protocol

HasSpotLight

An interface that defines a spot light source component.

Declaration

protocol HasSpotLight

Topics

Getting the Spot Light

var light: SpotLightComponent

A spotlight component for the entity.

struct SpotLightComponent

A component that defines a spotlight source.

Specifying the Shadow

var shadow: SpotLightComponent.Shadow?

The shadow for the spotlight.

Relationships

Inherits From

Conforming Types

See Also

Configuring the Spot Light

var light: SpotLightComponent

A spotlight component for the entity.

struct SpotLightComponent

A component that defines a spotlight source.

var shadow: SpotLightComponent.Shadow?

The shadow cast by a spot light.