---
title: arrayLength
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/textureresource/arraylength
---

# arrayLength

The number of slices in the texture array.

## Declaration

```swift
@MainActor @preconcurrency var arrayLength: Int { get }
```

## Discussion

Discussion The value is 0 if it isn’t a texture array.

## See Also

### Describing the texture

- [textureType](realitykit/textureresource/texturetype.md)
- [pixelFormat](realitykit/textureresource/pixelformat.md)
- [height](realitykit/textureresource/height.md)
- [width](realitykit/textureresource/width.md)
- [depth](realitykit/textureresource/depth.md)
- [mipmapLevelCount](realitykit/textureresource/mipmaplevelcount.md)
- [semantic](realitykit/textureresource/semantic-swift.property.md)
