<!--
{
  "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/HoverEffect-swift.struct/highlight(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20HoverEffectComponentV0cD0V9highlightyAeC09HighlightcD5StyleVFZ"
  },
  "title" : "highlight(_:)"
}
-->

# highlight(_:)

Returns a hover effect style that uniformly highlights the entity and also applies a feathered spotlight effect.

```
static func highlight(_ style: HoverEffectComponent.HighlightHoverEffectStyle) -> HoverEffectComponent.HoverEffect
```

## Parameters

`style`

A [`HoverEffectComponent.HighlightHoverEffectStyle`](/documentation/RealityKit/HoverEffectComponent/HighlightHoverEffectStyle) instance that allows you to customize various aspects of this hover effect.

---

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)