[Inventory system] Widget Overlapping function not working

Alright, Hello.

I’ll ask here because I didn’t see it being adressed elsewhere and I feel like I tried everything.
I’m trying to create a grid inventory system based on small square images. The way it works is very basic : a widget blueprint (simulating the inventory) contains a grid panel (wrapped in a canvas) and this grid panel is populated on construct with a set number of the same widget blueprints that are basicly just an image, wrapped in a canvas, wrapped in a size box.
I also have a similar blueprint (but simulating a 2D item) attached to my mouse position on screen but with a small offset, and the position is set each tick (get mouse position, set grid panel as canvas slot, set position of grid panel).

What I wanted to achieve was finding if each individual square widget (which for now are only one widget in each grids for testing purposes) contained withing the inventory and mouse grids were overlapping. For this I used the function below :

But SOMEHOW it doesn’t work only with the widget blueprints containing the squares that I made. It works if I manually put basic images in the grids instead of populating them on construct with my custom ones.

I feel like I tried everything to make it work : feeding to the function GetAllChildren with a ForEachLoop ; create an array of my custom square widgets and feeding them directly, or feeding their image to the function ; create an array containing all the images of my custom square widgets and feeding them to the function…

I checked their position on screen and it seems like it’s returning the right value. I can’t just manually add images to my grids because I need to put some functionnalities on my custom widget squares later.

I would guess that I’m probably missing an intermediary node somewhere that I don’t know the existence of ?
Does someone have any ideas ?

Thanks in advance.

Nevermind, I’m regarded but with a “t”. It’s because I put negative scale on x axis to reverse the position of the grid on screen and it was messing with the function… Now that it’s set back to default it’s working perfectly.

My bad. Maybe at least the function I showed will be able to help people looking for a way to check for overlapping widgets.

Have a nice day.