<!--
{
  "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/OpacityFunction",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation20HoverEffectComponentV15OpacityFunctionO"
  },
  "title" : "HoverEffectComponent.OpacityFunction"
}
-->

# HoverEffectComponent.OpacityFunction

The blending technique options a hover effect applies to its entity’s base material.

```
enum OpacityFunction
```

## Topics

### Enumeration Cases

[`case blend`](/documentation/RealityKit/HoverEffectComponent/OpacityFunction/blend)

Draws the hover effect with an opacity that’s equal to the product of the entity’s base material and the shader’s output.

[`case full`](/documentation/RealityKit/HoverEffectComponent/OpacityFunction/full)

Applies an opaque hover effect and ignores the opacity of the entity’s base material.

[`case mask`](/documentation/RealityKit/HoverEffectComponent/OpacityFunction/mask)

Applies a hover effect with full opacity when the opacity of the entity’s base material is greater than five percent.

## Relationships

### Conforms To

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

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

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

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

---

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)