<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "RealityKit",
  "identifier" : "/documentation/RealityKit/IKRig/JointCollection/subscript(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Subscript",
  "symbol" : {
    "kind" : "Instance Subscript",
    "modules" : [
      "RealityKit"
    ],
    "preciseIdentifier" : "s:17RealityFoundation5IKRigV15JointCollectionVyAC0D0VSgAG2IDVcip::OverloadGroup"
  },
  "title" : "subscript(_:)"
}
-->

# subscript(_:)

Accesses the element with the specified identifier.

```
subscript(id: IKRig.JointCollection.Element.ID) -> IKRig.JointCollection.Element? { get set }
```

## Parameters

`id`

The identifier of the requested element.

## Overview

The following set scenarios are ignored:

- Setting nil
- Setting element with different id, e.g. `collection[ID(2)]?.id = ID(3)
- Setting element with id not in the set

---

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)