Read Resources from SD Card

Hi
As I know Unity have Resources.Load() method to load resources from Asserts/Resources folder
Is there a way to load resources stored in sd card ?

Thanks.

Can WWW(“file:///sdcard/wherever/your/file/is”); be a solution?

It have error. :frowning:

What kind of errors? Did you file a bug those errors? If not, please do.

WWW w = new WWW("file:///C:/New.unity3d"); // New.unity3d is asset bundle

GameObject o = (GameObject)w.assetBundle.Load("penelopeFBX");

This code run ok in desktop.
But when I run in android, the path is “file:///mnt/sdcard/New” , it cannot run, w variable is NULL

Please help. Thanks.

No help ? :frowning:

And what does the logcat say?

This is logcat output:

My script file is: NewBehaviourScript

Can anyone help me? Read asset bundle is very important to me.
Thanks so much.

Why can’t youjust use the .Net library, I mean:
System.IO.File.ReadAllText(“path”), isn’t that supposed to work?

Please try with Unity 3.2 (just released); it could be there was a problem with 3.1 and assets bundles through WWW. Afaik, it works fine in 3.2.

Guys im too stuck in the same issue.
Any solution for this ?

You can place your files at StreamingAssets. Check this out

http://docs.unity3d.com/Documentation/ScriptReference/Application-streamingAssetsPath.html