---
title: parentIndices
framework: arkit
role: symbol
role_heading: Instance Property
path: arkit/arskeletondefinition/parentindices-u2u9
---

# parentIndices

The parent index for each joint.

## Declaration

```swift
@nonobjc var parentIndices: [Int] { get }
```

## Discussion

Discussion This property may be used to identify the hierarchical dependency between joints. If a line is drawn for every joint and its parent joint, the result is a visualization of the underlying skeleton. The joint with no parent is denoted as the root joint. The root joint’s parent index is -1.

## See Also

### Getting Joint Information

- [jointNames](arkit/arskeletondefinition/jointnames.md)
- [jointCount](arkit/arskeletondefinition/jointcount.md)
- [index(for:)](arkit/arskeletondefinition/index(for:).md)
