Found a bug in structure array with Addunique command

您好!我是UE4的一名爱好者和初学者。最近在学习过程中,发现如果Addunique命令用于结构体型数组时会出现错误的结果。请看附图所示的蓝图程序和执行结果。执行此程序时,第一次按下P键,显示是“MyVary”结构体型数组内有三个元素,紧接着我按下A键,再一次按下P键后,显示该数组有了四个元素,即多了一个不应该增加的元素,因为该元素的"Name"和"Health"值都与“MyVary”结构体型数组的第“1”号元素内的相同。但当我继续按A键,再按P键时,元素的数量就再也不增加了。
我估计这是Addunique命令的一个小Bug,但因我是初学者,不敢完全肯定这一点,特此向您报告与赐教,谢谢!

Unless you have define your struct in C++ and written a custom comparison this is the correct behavior.

Add Unique will add unless all the member variable of the struct are the same.

You can change this in C++ by writing a new comparison so that it only cares about the ‘Name’ and ‘Health’ members of your struct.

Thanks for your kind help! William Sheng