UMaterialParameterCollection::GetScalarParameterIndexByName

Get the index in the ScalarParameters array of the parameter matching the input parameter name, returns -1 if not found