خرید بک لینک

Vote count: 0

I'm developing some webGL project in Unity that has to load some exteal 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. I am putting the images in Assets/StreamingAssets folder, that will become StreamingAssets folder in the built project (at root, same as index.html). Images are located there, yet browser still complains about not being able to find that directory. (I'm opening it on my own computer, no ruing web server)

I guess I'm missing something very obvious, but it seems like I could use some help, I've just started leaing 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?

Could 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;
string[] filePaths = Directory.GetFiles(appPath, "*.jpg");

According to unity3d.com in webGL builds everything except threading and reflection is supported, so IO should be working - or so I thought:S

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 22 فروردين 1395 ساعت: 19:59

صفحه بندی