---
title: uniforms
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skshader/uniforms
---

# uniforms

The list of uniforms associated with the shader.

## Declaration

```swift
var uniforms: [SKUniform] { get set }
```

## Mentioned in

Creating a Custom Fragment Shader

## Discussion

Discussion This property is not read-only, so you can also use it to provide all of the uniforms in a single operation. Each of the uniforms should be uniquely named.

## See Also

### Providing Uniform Data to a Shader

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