<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/CustomMaterial/Opacity/scale",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation14CustomMaterialV7OpacityV5scaleSfvp"
  },
  "title" : "scale"
}
-->

# scale

The amount of opacity specified as a single value.

```
var scale: Float
```

## Discussion

If [`texture`](/documentation/RealityKit/CustomMaterial/Opacity/texture) is `nil`, RealityKit uses this
value for the opacity of the entire material. If
[`texture`](/documentation/RealityKit/CustomMaterial/Opacity/texture) isn’t `nil`, RealityKit
multiplies the value sampled from [`texture`](/documentation/RealityKit/CustomMaterial/Opacity/texture)
by this property to calculate the final opacity values.

---

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)