---
title: uniformType
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skuniform/uniformtype
---

# uniformType

The uniform object’s data type.

## Declaration

```swift
var uniformType: SKUniformType { get }
```

## Discussion

Discussion A uniform object’s type is set to SKUniformType.none until the first time that the uniform variable’s value is set; this happens automatically if you use an initialization method that provides an initial type and value. Once the uniform object is given an initial value, its type changes to that value’s type and thereafter cannot be changed.

## See Also

### Reading Information About a Uniform

- [name](spritekit/skuniform/name.md)
