---
title: HasSpotLight
framework: realitykit
role: symbol
role_heading: Protocol
path: realitykit/hasspotlight
---

# HasSpotLight

An interface that defines a spot light source component.

## Declaration

```swift
@MainActor @preconcurrency protocol HasSpotLight : HasTransform
```

## Topics

### Getting the spot light

- [light](realitykit/hasspotlight/light.md)

### Specifying the shadow

- [shadow](realitykit/hasspotlight/shadow.md)

## Relationships

### Inherits From

- [HasTransform](realitykit/hastransform.md)

### Conforming Types

- [SpotLight](realitykit/spotlight.md)

## See Also

### Entity compliance

- [HasPerspectiveCamera](realitykit/hasperspectivecamera.md)
- [PointLight](realitykit/pointlight.md)
- [HasPointLight](realitykit/haspointlight.md)
- [SpotLight](realitykit/spotlight.md)
- [DirectionalLight](realitykit/directionallight.md)
- [HasDirectionalLight](realitykit/hasdirectionallight.md)
