I have a static ItemPickup, it always placed in home, when you switch map and come back you could pick it up again
so I could pickup mulitple LanceA
but, when I equip the first LanceA, its slot marked with equipped icon(E), this is expected. what's wrong is that at same moment, the action button of the second LanceA is wrong, it shows "Unequip"
after some debug, I find all of them has same item instance id
their category is Weapon, Weapon enabled mutable & unique options.
the direct cause is ItemPickup.
the pickup has been instantiated at editor time
so the item has a consistant ID
each time I pick it up , it add the exactly same item(including id) to collection
But I think UIS should handle this kind of thing internally, it's unacceptable to share a same instance ID between many unique&mutable item instances in any situation.
Could you please help to check this?
btw, if the add option of inventory will change the item ID(if we decided to fix it by this way), it also need return the new ID which it uses finally.
so I could pickup mulitple LanceA
but, when I equip the first LanceA, its slot marked with equipped icon(E), this is expected. what's wrong is that at same moment, the action button of the second LanceA is wrong, it shows "Unequip"
after some debug, I find all of them has same item instance id
their category is Weapon, Weapon enabled mutable & unique options.
the direct cause is ItemPickup.
the pickup has been instantiated at editor time
so the item has a consistant ID
each time I pick it up , it add the exactly same item(including id) to collection
But I think UIS should handle this kind of thing internally, it's unacceptable to share a same instance ID between many unique&mutable item instances in any situation.
Could you please help to check this?
btw, if the add option of inventory will change the item ID(if we decided to fix it by this way), it also need return the new ID which it uses finally.