---
title: "subscript(_:)"
framework: realitykit
role: symbol
role_heading: Instance Subscript
path: "realitykit/unsafeforceeffectbuffer/subscript(_:)"
---

# subscript(_:)

Returns an element by index.

## Declaration

```swift
subscript(index: Int) -> T { get }
```

## Overview

Overview The index should be in the range [0, physicsBodyCount].
