---
title: "uniformNamed(_:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/skshader/uniformnamed(_:)"
---

# uniformNamed(_:)

Returns the uniform object corresponding to a particular uniform variable.

## Declaration

```swift
func uniformNamed(_ name: String) -> SKUniform?
```

## Parameters

- `name`: The name of the uniform to search for.

## Return Value

Return Value The uniform object corresponding to the name, or nil if that uniform cannot be found.

## See Also

### Providing Uniform Data to a Shader

- [addUniform(_:)](spritekit/skshader/adduniform(_:).md)
- [removeUniformNamed(_:)](spritekit/skshader/removeuniformnamed(_:).md)
- [uniforms](spritekit/skshader/uniforms.md)
