<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SpriteKit",
  "identifier" : "/documentation/SpriteKit/SKUniformType",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SpriteKit"
    ],
    "preciseIdentifier" : "c:@E@SKUniformType"
  },
  "title" : "SKUniformType"
}
-->

# SKUniformType

An enumerated type to identify the type of a uniform object.

```
enum SKUniformType
```

## Topics

### Constants

[`SKUniformType.none`](/documentation/SpriteKit/SKUniformType/none)

Indicates that the uniform variable does not currently hold any data. A uniform object has this type until the first time its value is set.

[`SKUniformType.float`](/documentation/SpriteKit/SKUniformType/float)

Indicates that the uniform variable holds a 32-bit floating-point value.

[`SKUniformType.floatVector2`](/documentation/SpriteKit/SKUniformType/floatVector2)

Indicates that the uniform variable holds a vector of two 32-bit floating-point values.

[`SKUniformType.floatVector3`](/documentation/SpriteKit/SKUniformType/floatVector3)

Indicates that the uniform variable holds a vector of three 32-bit floating-point values.

[`SKUniformType.floatVector4`](/documentation/SpriteKit/SKUniformType/floatVector4)

Indicates that the uniform variable holds a vector of four 32-bit floating-point values.

[`SKUniformType.floatMatrix2`](/documentation/SpriteKit/SKUniformType/floatMatrix2)

Indicates that the uniform variable holds a `2 x 2` matrix of four 32-bit floating-point values.

[`SKUniformType.floatMatrix3`](/documentation/SpriteKit/SKUniformType/floatMatrix3)

Indicates that the uniform variable holds a `3 x 3` matrix of four 32-bit floating-point values.

[`SKUniformType.floatMatrix4`](/documentation/SpriteKit/SKUniformType/floatMatrix4)

Indicates that the uniform variable holds a `3 x 3` matrix of four 32-bit floating-point values.

[`SKUniformType.texture`](/documentation/SpriteKit/SKUniformType/texture)

Indicates that the uniform variable holds a reference to a SpriteKit texture.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)