So I am having a problem loading in a texture for an inventory. I have a class Item declared that has specific values and populated a list called database in a different script. In the project interface you can see when the new items load in with individual values for name, id, description, etc. All items added however are missing the texture and when I run the program I get a warning that say null texture passed. Everything works and the inventory shows but the textures, that are pathed correctly as far as I can tell, are not being attached to their item. Any help is greatly appreciated. Thanks.
2885768–211997–Inventory.cs (987 Bytes)