---
title: opacityFunction
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/hovereffectcomponent/spotlighthovereffectstyle/opacityfunction
---

# opacityFunction

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

## Declaration

```swift
var opacityFunction: HoverEffectComponent.OpacityFunction
```

## Discussion

Discussion The property’s default value is HoverEffectComponent.OpacityFunction.full.
