![]() ![]() Then I convert all lines to proper path, and add them to a list: string temp = Application.streamingAssetsPath + "/textures/" + s įile://////Downloads/FurnitureDresser/build/StreamingAssets/textures/79.jpg I was working around a bit and now I'm trying to load a text file containing the paths of the images (separated by ' '): TextAsset ta = Resources.Load("texManifest") String filePaths = Directory.GetFiles(appPath, "*.jpg") Īccording to unit圓d.com in webGL builds everything except threading and reflection is supported, so IO should be working - or so I thought:S I guess I'm missing something very obvious, but it seems like I could use some help, I've just started learning unity a week ago, and I'm not that great with C# or JavaScript (I'm trying to get better.) Is this somehow related to some javascript security issues?Ĭould someone please point me in the right direction, how I should be reading images(no writing need to be done) in Unity WebGL? string appPath = Application.dataPath (I'm opening it on my own computer, no running web server) Images are located there, yet browser still complains about not being able to find that directory. I am putting the images in Assets/StreamingAssets folder, that will become StreamingAssets folder in the built project (at root, same as index.html). I'm developing some webGL project in Unity that has to load some external images from a directory, it runs all fine in the editor, however when I build it, it throws a Directory Not Found exception in web console. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |