bsimser / Inventory-Pro

https://devdog.io
MIT License
2 stars 0 forks source link

Item prefab not renamed after items array gets shifted #261

Open bsimser opened 5 years ago

bsimser commented 5 years ago

Original report by Joris Huijbregts (Bitbucket: jjahuijbregts, ).


When an object is deleted in the item manager all objects coming after the deleted item are shifted down to avoid null references in the item array.

Objects currently have their item ID referenced in the prefab name and these don't get updated after the item array is shifted.

Possible solution: Completely remove ID from the item name Other solution: Update names after an objects is shifted (potentially slow if there's a lot of items).