Documentation

Unity Engine

Download Unity

Unity Engine

FindBindingIndex(ref BlobArray<StringHash>, StringHash)

Find a binding in a binding array.
Read time 1 minuteLast updated 4 hours ago

Definition

FindBindingIndex(BlobArray<StringHash>, StringHash)

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

Parameters

The bindings' array to search in.

searchedBinding

The binding to match.

Returns

Type

Description

intThe 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.