---
title: instanceCount
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/lowlevelinstancetransformresource/instancecount
---

# instanceCount

The number of active instances to draw.

## Declaration

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

## Discussion

Discussion Defaults to 0 after creation. Set this to the number of transforms written before passing the buffer to a mesh instance.

## See Also

### Inspecting instance counts

- [instanceCapacity](realitykit/lowlevelinstancetransformresource/instancecapacity.md)
