---
title: light
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/hasspotlight/light
---

# light

A spotlight component for the entity.

## Declaration

```swift
@MainActor @preconcurrency var light: SpotLightComponent { get set }
```
