so i am trying to get this to work, and I keep getting strange behaviour? My code looks something like this:
Object[] weapon = Resources.LoadAll("Prefabs/Weapons");
I am on work so I cant check if it looks preciesly like this? (But I know that this should be working). There is only two weapons in the folder(I plan on adding more weapons) but when I print out weapons.Lenght it tells me that the array is 4 long. However, only 1 of the weapons is loaded, and the rest of the slots gives me errors.
Anyone that can give me an explanation of why this is behaving like this?
What errors are you getting?
– _Petroz