---
title: "uniform(_:)"
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/computegraphshareduniforms/uniform(_:)"
---

# uniform(_:)

Returns the stored uniform value for the given type, or nil if none has been set.

## Declaration

```swift
func uniform<V>(_ type: V.Type) -> V? where V : BitwiseCopyable
```

## Parameters

- `type`: The BitwiseCopyable type to retrieve.

## Return Value

Return Value The stored value, or nil.
