Can't figure out why add unique isn't working



For some reason add unique isn’t outputting -1 with non-unique references. When printing to the screen, the index remains the same with the same references. However, adding it to the array manually as such yields that it just expands the array.

Could it be an issue with what you think is Unique here:

These two are not, and will happily occupy the same array. They are different instances of the same class.

The second AddUnique node would spit out -1 if you:

That’s what I was afraid of. I was trying to implement damage for my grenades, I finally found a tutorial that works. It uses a blueprint interface.

1 Like