Dynamic generate slots

FloatySprite

New member
Hi,

I made a dynamic slots generater and it looks like circular skill tree of "Path of Exile" a little. My problem is how to add these slots to the assets' UI system. "Inventory Grid" seems not fit. What do I need to do to make the UI system support dynamic non-gridded slots?

Thanks
 
You would need to create a custom ItemViewSlotsContainer. You can do so by inheriting the ItemViewSlotsContainer or ItemViewSlotsContainerBase class.
Examples of ItemViewSlotsContainers are ItemHotbar, InventoryGrid, ItemShapeGrid, and ItemSlotCollectionView (aka equipment panel)

In all these examples the slots are prespawned, but there shouldn't be anything preventing you to spawn slots at runtime when making a custom one.
I hope that helps
 
Top