FindBindingIndex(ref BlobArray<StringHash>, StringHash)
Find a binding in a binding array.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
FindBindingIndex(BlobArray<StringHash>, StringHash)
public static int FindBindingIndex(ref BlobArray<StringHash> bindings, StringHash searchedBinding)
Parameters
The bindings' array to search in.
The binding to match.
Returns
Type | Description |
|---|---|
| int | 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.