Okay so, I’ve been working on a drag and drop inventory and there needs to be two different item icons for each item. One for when it’s being dragged and one for when it’s stored. This is all well and good but for some reason when ever I make the file path longer than one folder it doesn’t work. The texture needed returns null.
I want to access Item Icons/Dragged/Warhammer_Test but it doesn’t work.
draggedItemIcon = Resources.Load(“Item Icons/Dragged/” + name);
This is part of something larger that makes it so I can just use a function and put some values in to create items. It works if I use the file path:
draggedItemIcon = Resources.Load(“Item Icons/” + name);
and move the texture I want into the “Item Icons” folder. There are ways around this I know but how can I use Resources.Load, keep my assets where they are and do this.