---
title: scale
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/custommaterial/opacity/scale
---

# scale

The amount of opacity specified as a single value.

## Declaration

```swift
var scale: Float
```

## Discussion

Discussion If texture is nil, RealityKit uses this value for the opacity of the entire material. If texture isn’t nil, RealityKit multiplies the value sampled from texture by this property to calculate the final opacity values.

## See Also

### Accessing opacity data

- [texture](realitykit/custommaterial/opacity/texture.md)
