Hello!
I am using your inventory system asset and I have a problem regarding disappearing items from the Inventory UI. I am working on RPG where each scene is a separate map chunk and player prefab with Inventory component is always present in the scene. My UI with Inventory System Manager is set to Don't destroy on load and is persistent between the scenes (so there is always only one same instance in the game).
What I am experiencing is this:
1) I load arbitrary scene from editor and open Inventory UI - everything is shown perfectly, I can see items in UI and they are shown also in player's Inventory component
2) I go to another part of the map, which means new scene load - now I see empty inventory UI (each ItemViewSlotForGrid in the GridView is populated with Empty Item View gameObject), but I can see the items in player's Inventory component - that means items are present, but they are not showing in the UI
3) However, when I continue playing, pickup some object(s), open inventory UI and hover mouse cursor over the UI, it looks like UI is redrawn and all items are being shown correctly again
Can I ask someone for the advice where should I look reagarding the debugging of this problem? Why the items probably disappear and what should I do to prevent this behaviour? Thanks a lot in advance for your answers!
I am using your inventory system asset and I have a problem regarding disappearing items from the Inventory UI. I am working on RPG where each scene is a separate map chunk and player prefab with Inventory component is always present in the scene. My UI with Inventory System Manager is set to Don't destroy on load and is persistent between the scenes (so there is always only one same instance in the game).
What I am experiencing is this:
1) I load arbitrary scene from editor and open Inventory UI - everything is shown perfectly, I can see items in UI and they are shown also in player's Inventory component
2) I go to another part of the map, which means new scene load - now I see empty inventory UI (each ItemViewSlotForGrid in the GridView is populated with Empty Item View gameObject), but I can see the items in player's Inventory component - that means items are present, but they are not showing in the UI
3) However, when I continue playing, pickup some object(s), open inventory UI and hover mouse cursor over the UI, it looks like UI is redrawn and all items are being shown correctly again
Can I ask someone for the advice where should I look reagarding the debugging of this problem? Why the items probably disappear and what should I do to prevent this behaviour? Thanks a lot in advance for your answers!