Hi,
ItemHotbar has an Equip ItemAction that I can use when pressing 1. It will move a weapon to the Item Equipment ItemSlotCollection.
The problem is when I open the inventory screen, the Equipment ItemViewSlotContainer is not updated. But when I call ItemAction in the inventory screen It is updated.
(I have checked the ItemSlotCollection the weapon was moved to the correct collection and nothing is wrong with it except the ItemViewSlotContainer UI is not updated at that time.)
For example In the Demo, when assigned a Wooden Sword into the Hotbar slot 1 then press 1 to equip. It is equipped and ItemViewSlotContainer in the inventory screen is also updated correctly.
I try to find a function to update the UI but could not find it.
I am not so sure what I am doing wrong so please suggest. Thank you in advance.
ItemHotbar has an Equip ItemAction that I can use when pressing 1. It will move a weapon to the Item Equipment ItemSlotCollection.
The problem is when I open the inventory screen, the Equipment ItemViewSlotContainer is not updated. But when I call ItemAction in the inventory screen It is updated.
(I have checked the ItemSlotCollection the weapon was moved to the correct collection and nothing is wrong with it except the ItemViewSlotContainer UI is not updated at that time.)
For example In the Demo, when assigned a Wooden Sword into the Hotbar slot 1 then press 1 to equip. It is equipped and ItemViewSlotContainer in the inventory screen is also updated correctly.
I try to find a function to update the UI but could not find it.
I am not so sure what I am doing wrong so please suggest. Thank you in advance.