Hello all!
I’m having a little problem in a game that I’m making.
I have an UI with images and I want to show a custom tooltip when hovering over them.
The custom tooltip “bind function” that Unreal provides works well, but not my code.
The thing is, I want all my icons to use the same function but I don’t know how to know which ‘image’ I’m hovering with the mouse in any case.
I tried to make an array of all my images and then loop through it to find the hovered image like so:
This a function inside my actual ‘bind’ function.
The problem is this function doesn’t always return an image but I don’t really know why.
I already debbuged the array and it loops entirely through the images every single time i mouse over an image on the UI, so that is working.
I just don’t get why sometimes I mouse over and get the tooltip and sometimes don’t.
Anyways, is there a better way to do this? Maybe not an array?
Once I get a reference I search it on a dictionary and then a Data Table that I have.
Here is the rest of the code just for clarity:


