Hey guys. I’m currently working on an inventory system. Right now I have an InventoryCell prefab container which has a child canvas, which itself has 3 children with image components: a background, a border, and an item image. For the inventory GUI, I just want to add a bunch of these InventoryCell prefabs underneath a “CellContainer” that has a grid layout group for organization.
This sounds very straightforward honestly, but the layout group isn’t working and I suspect it’s because the container for the prefabs does not have a rect transform. Is fixing this as simple as “making” the prefab root have a rect transform? Should I be giving the root a canvas element? a panel? I don’t know if it matters, or if that’s even the right approach. Thanks for any advice you guys can give.