I’m working on an inventory for my game where items can have different sizes, but i’m running into this issue where if an item in the inventory has a different size all the other slots in the grid panel resize, or atleast the slots in the same row/column as the item.
For reference i’m checking the slots the item will take up and if they’re empty im removing them, so how can i stop the other grid slots from changing size and have them instead reposition to give the illusion of a spatial inventory?
You need to set the Row Spawn and Colums Span parameters according to the size of the item.
In your example - you need to set Colums Span = 2, and Row Span = 3
Was the call originally for Event Construct in the item widget?
It would be more correct to create a Custom Event (or function) for setting Spans, which you will call yourself after creating the widget, and after adding it to the Grid Panel.