---
title: ParentIndex
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/skeletonnode/parentindex
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/skeletonnode/parentindex.md
last_updated: 2026-11-30
generated_at: 2026-11-30T20:52:42.924Z
locale: en-us
---

# ParentIndex

> Parent SkeletonNode index.

## Definition

* **Type:** Field
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
public int ParentIndex
```

### Remarks

The root node is the first node of a skeleton and has a parent index of `-1`. Each other node must have a parent index that is lower than its own index, which means that you add a parent to a [RigBuilder](/engine/7000.0/script-reference/unity/animations/rigbuilder.md) before its children. To get the index of a node from its identifier, use [RigBuilder.GetBoneIndex](/engine/7000.0/script-reference/unity/animations/rigbuilder/getboneindex.md).
