I have several item Prefabs in my Resources folder. Because I'm using a static script, I can't use the Inspector to set up the items, so I load them in through script. The following is an array of Transforms, with the index stored in an int variable:
objects[bronze] = (Transform)Resources.Load("Player Items/Bronze Armor");
However, whenever objects[bronze] is mentioned later, I get this error:
Object reference not set to an instance of an object
So, Resources.Load doesn't seem to be loading the resource for me and I can't figure out why. Anyone want to help?