<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/ARSkeletonDefinition/indexForJointName:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "c:objc(cs)ARSkeletonDefinition(im)indexForJointName:"
  },
  "title" : "indexForJointName:"
}
-->

# indexForJointName:

Returns the index for a given joint identifier.

```
- (NSUInteger) indexForJointName:(ARSkeletonJointName) jointName;
```

## Discussion

This function returns `NSNotFound` if an invalid joint name is passed in.

---

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)