Hello, everyone. I’m trying to build an inventory sistem for a game and to be honest, I have zero to none experience working on UMG and I’m finding an error with it. I got a Main widget that hold the inventory widget
Inside this wg is a menu with the different actions you can do with an item on the inventory, this “action menu” is where the error locates
Here is the begin play event of the (for now) playerCharacter and the main wg has a variable that is a reference to the inventory component and you can see that it has a valid reference
On the main wg constructor, I send the reference to the other 2 widgets of the inventory (the array firts and the action menu second) again a valid reference and the fact that I can visualize the inventoy (first image) means that the “inventario” object reference works and holds a reference to the correct component.
But every time I try to make the action menu appear, the variable “inventory” has no value, which does not make sense to me and I already lost 3 days trying to solve it.
If you got any idea on how to fix the error, thanks in advance.