Redirect to the Docs main page.Docs

Items Grids

Creating Grids for Your Container Item

Guide on how to create and set up Container Grids for container items in Ultimate Grid Inventory.

Understanding How Container Grids Work and How to Build Them

Container Grids are specialized grids wrapped by a Container Grid script, used as prefabs for Inventory Grids in container items such as backpacks and chests.

Creating Container Grids and Using Them as Prefabs

To create a Container Grid, navigate to the UGI Menu:

Creating the Container Grids via UGI MenuLoading image

Adding Grids Inside the Container Grids

To add grids inside the Container Grids, use the UGI Menu to create ItemGrids:

Creating ItemGrid inside Container GridsLoading image

You can customize the layout by adding multiple grids within the Container Grids. Ensure that the Container Grids GameObject's RectTransform encompasses the width and height of all contained grids.

After setting up the Container Grids and the internal grids, you can save this GameObject as a prefab:

Creating Container Grids as PrefabLoading image

Note: After creating the Container Grids GameObject as a prefab, you can delete it from the scene hierarchy.

Setting the Container Grids in a Container Item

Once you've created the Container Grids, assign the prefab to the Container Grids field in the Container Item.

Setting Container Grids with the prefabLoading image

You can then enter Play mode and see the Container Grids you created appear when you select the Open Option from the container item in the inventory.

Final Result

Showing the final resultsLoading image

On this page