I am trying to learn ECS and making a test game and i wanted to add an inventory system. i Have a InventoryItem DynamicBuffer and ItemDatabase singleton with a blob asset and I am trying to instantiate an Item from the database with id and add it to the InventoryItem buffer. but it throws this error. I tried a couple different ways but similar issue arises.
I've attached the Exception, Debugger views, ItemDatabaseAuthoring and InventoryInitialize system which checks for InventoryInitialize tag and tries to fill the the buffer elements remaining data from the database.
Thanks in advance 🙏🏼