<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/HasSpotLight",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation12HasSpotLightP"
  },
  "title" : "HasSpotLight"
}
-->

# HasSpotLight

An interface that defines a spot light source component.

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

## Topics

### Getting the spot light

[`var light: SpotLightComponent`](/documentation/RealityKit/HasSpotLight/light)

A spotlight component for the entity.

### Specifying the shadow

[`var shadow: SpotLightComponent.Shadow?`](/documentation/RealityKit/HasSpotLight/shadow)

The shadow for the spotlight.

## Relationships

### Inherits From

[`HasTransform`](/documentation/RealityKit/HasTransform)

### Conforming Types

[`SpotLight`](/documentation/RealityKit/SpotLight)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)