Ok so before when I just tried use the UI designer to make a new equipment slot set it didn't mirror the existing slot set. I tried going simpler and duplicating the existing equipment item view slot container manually. That mirrors my equipment correctly, but also causes a null reference...
Oh, I'm sorry, Specifically I'm trying to make a hotbar that mirrors a slot in an existing item slot collection view that have their assigned equipment equipped elsewhere. I've tried making another equipment panel and disabling the slots I don't need but it doesn't seem to work and feels like...
I'd like to repurpose a mirror hotbar to display the players equipped items, rather than an inventory grid. Unfortunately I'm not quite sure how to convert the Equipment Mirror Hotbar script to read an Item Slot Collection.
Ok that works fine, but GetItemSlotIndex needs an ItemStack so it puts out null when I click on an empty slot. Is making an item to represent an empty slot a good workaround? Or can I do something else?
Ah, I think see what's going on now. I'm getting a null reference because those equipment slots start off empty so there's no inventory for the itemInfo parameter to get. Does that sound about right?
So I've tried implementing this with a middleman component and I'm getting a null reference exception, any ideas as to what I missed?
NullReferenceException: Object reference not set to an instance of an object...
So I have some equipment view slots that when you click on them they open an item grid that contains all of the appropriate items for those slots. this grid has an item action panel equips the item to a slot by its string. I'm trying to use a unity event to set that string whenever the player...
I was using the move to collection item action, but yeah the inspector doesn't give any visual indication that a listener's event has been reassigned even at runtime. That's probably a unity thing though. In any case, I just ended up making a custom item action, works fine now.
So I'm trying to create an inventory system where the player can click on an equipment slot to open an inventory grid with all of that slots items. I've made this grid and hooked its display panel's smart toggle up to an equipment slot with an on click event from the item view slot. And that...