- Home /
Question by
trapazza · Feb 19, 2017 at 01:50 AM ·
prefabsload assetloadall
Resources.LoadAll() still loading prefabs twice in Unity 5.5.1
I have a problem where using Resources.LoadAll( path ) would load all prefabs in the specified path twice.
It seems there used to be some confusion in the past because this function would return both a Transform and a GameObject for every prefab found. This would be sorted out by specifying the resource type explicitly as GameObject but, this is not the case in Unity 5.5.1.
I get every prefab in the folder twice. The only difference between the two loaded instances, as far as I can tell, is in the material. One of the two copies has the correct one while the other gets a "Default-Material".
Is there a clean way I can get the correct prefabs? Thanks!
Comment