<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/HoverEffectComponent/SpotlightHoverEffectStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20HoverEffectComponentV09SpotlightcD5StyleV"
  },
  "title" : "HoverEffectComponent.SpotlightHoverEffectStyle"
}
-->

# HoverEffectComponent.SpotlightHoverEffectStyle

A type that configures the visual aspects of a spotlight hover effect for an entity.

```
struct SpotlightHoverEffectStyle
```

## Topics

### Initializers

[`init(color:strength:)`](/documentation/RealityKit/HoverEffectComponent/SpotlightHoverEffectStyle/init(color:strength:))

Creates a new spotlight effect with a color and strength.

[`init(color:strength:opacityFunction:)`](/documentation/RealityKit/HoverEffectComponent/SpotlightHoverEffectStyle/init(color:strength:opacityFunction:))

Creates a new spotlight effect with a color and strength.

### Instance Properties

[`var color: NSColor`](/documentation/RealityKit/HoverEffectComponent/SpotlightHoverEffectStyle/color-4n481)

The color tint for the spotlight hover effect.

[`var color: UIColor`](/documentation/RealityKit/HoverEffectComponent/SpotlightHoverEffectStyle/color-tdv8)

The color tint for the spotlight hover effect.

[`var opacityFunction: HoverEffectComponent.OpacityFunction`](/documentation/RealityKit/HoverEffectComponent/SpotlightHoverEffectStyle/opacityFunction)

The blending technique the hover effect applies to the entity’s base material.

[`var strength: Float`](/documentation/RealityKit/HoverEffectComponent/SpotlightHoverEffectStyle/strength)

A floating-point value that represents the intensity of the effect.

### Type Properties

[`static let `default`: HoverEffectComponent.SpotlightHoverEffectStyle`](/documentation/RealityKit/HoverEffectComponent/SpotlightHoverEffectStyle/default)

The default style applies a white spotlight glow at the hover location.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

---

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)