- Home /
Resources.LoadAll searching folders outside of Resources with given name
When I'm using Resources.LoadAll(), I've found that it seems to search multiple folders, rather than just the "Resources" folder.
For example, in my current situation:
Resources.LoadAll<MapObject>("Maps")
Instead of searching through only "Assets/Resources/Maps", this also appears to search in "Assets/Prefabs/UI/Maps". I had a prefab in the Prefabs/UI/Maps folder, which had missing scripts on it - these missing scripts caused warnings in the console on running the function, while when those prefabs were moved out of the Maps subfolder, the warnings ceased.
Is this intended functionality, or a bug with the function?
Your answer
![](https://koobas.hobune.stream/wayback/20220613013731im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
convert Resources.LoadAll("RPGOBJ", GameObject) to gameobject array? 0 Answers
Loading a large number of image resources 0 Answers
Best method for memory usage. 0 Answers
Having trouble with LoadAll 1 Answer
GUI layout Label Dimension issue 1 Answer