---
title: "setUniformValue(_:named:)"
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(_:named:)"
---

# setUniformValue(_:named:)

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

## Declaration

```swift
@discardableResult mutating func setUniformValue<V>(_ value: V, named name: String) -> Bool where V : BitwiseCopyable
```

## Parameters

- `value`: The value to write.
- `name`: The name of the uniform to update.

## Return Value

Return Value true if the uniform was found and updated; false otherwise.
