- Home /
Is there a way to load all objects in multiple folders within a Resource folder into 1 array?
As of right now I only know how to load all assets of 1 folder into an array, but what I want to do is add these into this array in the script .
Currently I am using a simple array like this public Object[] helmets; and calling it like helmets = Resources.LoadAll("Ruler1/Helmets", typeof(GameObject));.
Answer by $$anonymous$$ · Jun 29, 2017 at 05:25 AM
Never mind I'm a idiot, helmets = Resources.LoadAll("GeneralEquipment", typeof(GameObject)); gets all items in every folder in it.
Your answer
Follow this Question
Related Questions
Trying to Sort a Multi Dimensional Array 1 Answer
Find Closest Object by Name 0 Answers
Moving a GameObject (camera) forward and backward along a series of points (C#). 1 Answer
Need an advise, how to find all objects with a specific name and a specific script? 2 Answers
Multiple Cars not working 1 Answer