I have a problem with Resources.LoadAll(), when I use it to load prefabs it loads twice the same prefab if it has something.
My resources Folder:
Pref1- With content
Pref2- With content
var xyz = Resources.LoadAll(_path);
PS: Sorry for my English.
Hi i had the same problem as you and i solve it this way:
m_objects = m_objects.GroupBy(p => p.name).Select(g => g.First()).ToList();
Here m_objects is a collection of UnityEngine.Object
Can be useful
Hope that’s help someone
PS: If anyone can explain or tell us how to avoid this problem about getting twice a reference on some assets extracted from a bundle, it will be greatly appreciated !