hi. I have a question. I have a widget with an inventory grid. if you simply add it to the main widget, then the buttons in this grid cannot be clicked, and if you create a grid in the main widget graph, then all the buttons can be clicked. how does it work?
Hello @228Arseniy228 ,
Could you show a bit more of your setup—specifically which Blueprint you create the widget in and how you’re calling it?
I’ll be waiting for your response!
hi.I have a main widget that contains only a canvas panel, and it’s created at the start of the game.
Pressing Tab triggers an event in the main widget, which spawns an inventory grid. The inventory grid is the grid that contains the slot widgets.here is the inventory slot itself.
The problem is that only one widget is working. I have a widget that displays information about an inventory item, and it works fine—but then the inventory buttons stop responding to clicks. Initially, I noticed that if you place an inventory grid inside the main widget and then create another grid, one of them becomes unclickable
Here’s something that might work for you. If I’m not mistaken, the issue comes from having the Image, Text, and Button at the same hierarchy level inside a Canvas Panel. In that setup, the image or the text ends up capturing the input before it reaches the button, so the OnClicked event never gets executed.
You can try it this way, using this structure:
-
The SizeBox controls the size without affecting the input
-
The Button always receives the input
Make sure the button’s Normal and Pressed padding are both set to 0
-
Image and Text are purely visual and don’t block the click
-
The Overlay makes it easy to compose icons, text, states, etc.
( Set these last three to Fill so they adapt properly.)
Also, to test it, you can add a Print String to the button’s OnClicked event and check when it gets called.
I’m also leaving you two videos that might be useful for what you’re trying to achieve
How To Make An Inventory System In Unreal Engine 5 (Store, Stack and Drop Items)
How to create Modular and Scalable UI systems in Unreal Engine
Let me know if it works!







