<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/ComputeGraphComponent/setUniformValue(_:named:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "RealityKit",
      "ComputeGraph",
      "_RealityKit_ComputeGraph"
    ],
    "preciseIdentifier" : "s:24_RealityKit_ComputeGraph0cD9ComponentV15setUniformValue_5namedSbx_SSts15BitwiseCopyableRzlF"
  },
  "title" : "setUniformValue(_:named:)"
}
-->

# setUniformValue(_:named:)

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

```
@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

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

---

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)