---
title: meshInstancesArrayCount
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowlevelrenderer/meshinstancesarraycount
---

# meshInstancesArrayCount

The number of mesh instance array slots.

## Declaration

```swift
final var meshInstancesArrayCount: Int { get set }
```

## Discussion

Discussion Increase this value before calling setMeshInstances(_:at:) to assign arrays to slots. Setting this to a smaller value removes trailing slots.

## See Also

### Managing mesh instances

- [meshInstances(at:)](realitykit/lowlevelrenderer/meshinstances(at:).md)
- [setMeshInstances(_:at:)](realitykit/lowlevelrenderer/setmeshinstances(_:at:).md)
