Quantcast
Channel: Questions in topic: "webgl"
Viewing all articles
Browse latest Browse all 2390

Rebuilding webgl project cause me problems.

$
0
0
Hi everybody, I am writing this question because I do not know if the problem that I have is a bug or not, and I cannot understand why it is produced. I am developing a networking project for WebGL using UNET API. I built a succesful project build in numerous occasions when I was working with the 5.4.4 Unity version. I ran these builds in localhost using the file search system of Mozilla as well as Xampp's Apache as local web server and executing it from an url, and always works fine. However, after updating Unity to the 5.5.0f3 version I have problems with the builds which I cannot execute them from the file search system of Mozille neither hosting them in Xampp's Apache and accessing them from a localhost url. Below I put a screenshot of the error that Mozilla shows me. ![alt text][1] I looked for any solution in Unity forum and I found that many of the users have had problems with .htaccess document; nonetheless, I do not have that document so I cannot erase it as forum answer suggest. Another possible solution that I found is to check if the UnityLoader has no access to the Release folder, so I followed the instructions given by a Unity member and I have no any access problem. (See https://forum.unity3d.com/threads/webgl-giving-me-a-new-error.425026/ ). After trying the above solutions, I uninstalled Unity from my machine and reinstalled. When Unity was installed, I rebuilt the project and, surprising, the build worked fine. So, I changed the direction of the project server in the Network Manager component and rebuilt the project. Then I tested the build and it did not work again. My next step was returning the network address of the Network Manager component to the previous value in order to check if the problem was for the web server or for the build, and the new build did not work too. Finally, I thought that it would be a bug, but I tried to check if I could reproduce the problem in a simplest test project before report the possible bug. Therefore, I built the project to webgl and used the file search system of Mozilla to open the index.html document generated and it worked fine. Then, I rebuilt the same project and it worked fine too. As a conclussion, I do not know what it happens and how to fix it. If someone knows what is the problem and how to fix it, or if something of I wrote it is not clear, please ask me and I answer as soon as possible. Note: With the 5.5.0 version I always have the error of the below screenshot in console and I do not know if it is related with my problem. ![alt text][2] [1]: /storage/temp/86163-loading-error-webgl.jpg [2]: /storage/temp/86164-dontdestroyonload-error.jpg

Viewing all articles
Browse latest Browse all 2390

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>