---
title: FindBindingIndex(ref BlobArray<StringHash>, 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/bindingutility/findbindingindex
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/bindingutility/findbindingindex.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:04:14.611Z
locale: en-us
---

# FindBindingIndex(ref BlobArray<StringHash>, StringHash)

> Find a binding in a binding array.

## 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)

## FindBindingIndex(BlobArray\<StringHash>, StringHash)

```csharp
public static int FindBindingIndex(ref BlobArray<StringHash> bindings, StringHash searchedBinding)
```

### Parameters

**** (\[BlobArray\<StringHash>]\(/engine/7000.0/script-reference/unity/entities/blobarray1)): The bindings' array to search in.**** (\[StringHash]\(/engine/7000.0/script-reference/unity/animations/stringhash)): The binding to match.

### Returns

| Type                                                       | Description                                                                                  |
| ---------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The index of the first binding in the array that matches. If no binding matches, returns -1. |

### Remarks

This is a linear search in the array.
