---
title: "spotlight(_:)"
framework: realitykit
role: symbol
role_heading: Type Method
path: "realitykit/hovereffectcomponent/hovereffect-swift.struct/spotlight(_:)"
---

# spotlight(_:)

Returns a hover effect that displays a feathered spotlight on the entity where the current hover location is.

## Declaration

```swift
static func spotlight(_ style: HoverEffectComponent.SpotlightHoverEffectStyle) -> HoverEffectComponent.HoverEffect
```

## Parameters

- `style`: A doc://com.apple.RealityKit/documentation/RealityKit/HoverEffectComponent/SpotlightHoverEffectStyle instance that allows you to customize various aspects of this hover effect.
