URigHierarchy::GetIndex_ForBlueprint

Returns the index of an element given its key