Resources.LoadAll doc error

Edit: Even worse - the docs also do not mention the generic version, Resources.LoadAll!

The comment in the sample code says it loads the “Resources/Texture” folder, but the sample code actually loads from “” which is the Resources folder.

It may also be helpful to illustrate how to quickly cast the results to a useful type using LINQ, as this is not obvious.

http://answers.unity3d.com/answers/1023877/view.html
http://answers.unity3d.com/answers/733688/view.html

var loadedObjects = Resources.LoadAll("GameObjects", typeof(GameObject)).Cast<GameObject>();

Hi MV10 - yep, you’ve got value points. I’ll pass a bug for the Documentation to make changes. Thanks for letting us know.