---
title: FindBoneIndex(StringHash)
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/skeleton/findboneindex
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/skeleton/findboneindex.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:23:17.677Z
locale: en-us
---

# FindBoneIndex(StringHash)

> Finds the index of the bone with an identifier.

## Definition

* **Type:** Method
* **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 FindBoneIndex(StringHash id)
```

### Parameters

**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The `StringHash` identifier of the bone to find.

### Returns

| Type                                                       | Description                                                                                                                                             |
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the bone in [Skeleton.Ids](/engine/7000.0/script-reference/unity/animations/skeleton/ids.md). If no bone has the identifier, returns `-1`. |

### Remarks

For a rig built from transforms or an Avatar, the identifier of a bone is the [StringHash](/engine/7000.0/script-reference/unity/animations/stringhash.md) of its path relative to the root. For example, `FindBoneIndex(new StringHash("Hips/Spine"))` finds the bone at that path. The method searches the bones linearly. For details, refer to [BindingUtility.FindBindingIndex](/engine/7000.0/script-reference/unity/animations/bindingutility/findbindingindex.md).
