---
title: "setUniformValue(_: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/setuniformvalue(_:for:)"
---

# setUniformValue(_:for:)

Sets the value of a uniform to a BitwiseCopyable typed value.

## Declaration

```swift
mutating func setUniformValue<V>(_ value: V, for handle: ComputeGraphComponent.UniformHandle) where V : BitwiseCopyable
```

## Parameters

- `value`: The value to write.
- `handle`: The handle identifying the target uniform.
