<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/LowLevelMeshInstanceArray/count",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:19RealityCoreRenderer25LowLevelMeshInstanceArrayC5countSivp"
  },
  "title" : "count"
}
-->

# count

The number of instance slots in this array.

```
final var count: Int { get }
```

## Discussion

Represents the total capacity allocated at creation time; some slots may be unoccupied.
Use `setMeshInstance(_:index:)` to populate slots and the `subscript` to check occupancy.

---

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)