---
title: attributeValues
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skshapenode/attributevalues
---

# attributeValues

The values of each attribute associated with the node’s attached shader.

## Declaration

```swift
var attributeValues: [String : SKAttributeValue] { get set }
```

## Discussion

Discussion All nodes have their own copy of an attribute value and therefore the attribute values can be different across the same SKShader. If instead you need all nodes to share the same value, use SKUniform. Uniforms can change values every frame, but uniforms cannot vary per-node like attributes can.

## See Also

### Customizing Stroking or Fill Drawing

- [Controlling Shape Drawing with Shaders](spritekit/controlling-shape-drawing-with-shaders.md)
- [strokeShader](spritekit/skshapenode/strokeshader.md)
- [fillShader](spritekit/skshapenode/fillshader.md)
- [setValue(_:forAttribute:)](spritekit/skshapenode/setvalue(_:forattribute:).md)
- [value(forAttributeNamed:)](spritekit/skshapenode/value(forattributenamed:).md)
