---
title: "setUniformData(_:for:)"
framework: realitykit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: "realitykit/computegraphcomponent/setuniformdata(_:for:)"
---

# setUniformData(_:for:)

Sets the value of a uniform to raw bytes.

## Declaration

```swift
mutating func setUniformData(_ data: RawSpan, for handle: ComputeGraphComponent.UniformHandle)
```

## Parameters

- `data`: Raw bytes to write into the uniform.
- `handle`: The handle identifying the target uniform.
