---
title: constantValues
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/materialfunction/constantvalues
---

# constantValues

The constant values to use when RealityKit creates your function. These correspond to constants defined in your metal code.

## Declaration

```swift
var constantValues: MTLFunctionConstantValues { get set }
```
