Your == operator is just outsourcing the check to UItem’s == operator (that you might not have implemented).
It’s just better to give your UItem class a FGuid Id which you can compare within operators or simply compare UItems by FName there.
Your == operator is just outsourcing the check to UItem’s == operator (that you might not have implemented).
It’s just better to give your UItem class a FGuid Id which you can compare within operators or simply compare UItems by FName there.