Just a few things, somewhat edited, that I’ve worked on for fun.
I thought I’d share for anyone who was interested in looking at them to use, learn, or comment… doesn’t matter to me
There is a GameItem (which is a ScriptableObject for an inventory item), a storageSlot class (as well as an inventorySlot class, which just adds 1 override).
The inventory slots display items, and have some code for moving items, swapping them, partial moves (splits); the splits however aren’t fully functional, and I wrote some code to split a stack by only 1 for this ‘package’. But the code is there, more or less…
An Inventory class with methods to add, check, remove items… stuff like that.
There is some code to resize and drag a root game object. It can be given a min/max size (the max can be -1 = no restriction, other than screen space).
There is some code for scaling when the canvas changes dimensions, ie: resizable windows.
some stuff requires the camera be in screen space overlay to work.
3263885–251801–SampleScene.unitypackage (31.1 KB)