Bernkastel
Member
I have an InventoryGrid, I subscribe to the onItemViewSlotSelected event and grab the itemInfo associated with that event data. I only read the data of that iteminfo, I do not reassign a new value or alter it in the subscribed function.
After the function is called, the item's overridden values are reset to default values (Though it still says the attribute is override)
To be clear, I have a normal item with primitive attributes, I override a single attribute (in the inspector, not through code) to have a new value. The first time I read the itemInfo, the override value is the new value I assigned in the inspector. But when I click on a different item and then BACK onto that overridden value, its value is now reset to the inherited value.
This shouldn't be intentional? I can post pictures below..
BEFORE/FIRST on select event (assigned in inspector outside of play mode)
AFTER first on select event: (During play mode after clicking on the itemViewSlot and triggering the on select event)
After the function is called, the item's overridden values are reset to default values (Though it still says the attribute is override)
To be clear, I have a normal item with primitive attributes, I override a single attribute (in the inspector, not through code) to have a new value. The first time I read the itemInfo, the override value is the new value I assigned in the inspector. But when I click on a different item and then BACK onto that overridden value, its value is now reset to the inherited value.
This shouldn't be intentional? I can post pictures below..
BEFORE/FIRST on select event (assigned in inspector outside of play mode)
AFTER first on select event: (During play mode after clicking on the itemViewSlot and triggering the on select event)