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

# 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 blend
```

## Discussion

In this example a rounded black rectangle continuously transitions between transparent and fully opaque. Applying a green highlight hover effect with a blend opacity function to the rectangle causes the hover effect to smoothly transition between transparent and fully opaque.

![A screen recording of an empty living room. After a short delay a green rectangle slowly fades in and then fades back out.](videos/com.apple.RealityKit/hovereffectcomponent-opacityfunction-blend~dark.mp4)

---

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)