Ambiguous list reference [SOLVED]

Hello! I’m in the lecture Selecting Multiple units though the error may not be from this exact lecture. I am receiving an error on this line of the “UnitSelectionHandler.cs”:

public List<Unit> SelectedUnits { get; } = new List<Unit>();

Both of the "List"s are giving me errors saying they are ambiguous between a Unity collection and Mirror. I can explicitly state which one they are, and I assume its the generic Unity, but I am not sure. Thank you!

EDIT: It seems I had two using statements at the top of the script that were conflicting. Not sure 100% why, as Nathan had them both as well but I removed the Using Unit.system.generic.collection since it had not other use and the problem went away

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms