Hi
I have a problem loading external game files in webgl. in the windows version everything works without any problems. Do web games use different file pointing? The game loads external files required for operation and the browser version will not run at all. Maybe someone can advise what may be wrong.
Web applications are prohibited from using the file system API. If that “external file” is in a location like the user’s home directory, the app cannot access that. You will have to make those files available via a webserver / webservice or cloud drive, or bundle them within the app itself by using the StreamingAssets folder.
thank you for the information. I tried to share these files on my server where the game is hosted, but these files still cannot be loaded. gives an absolute address with https and a relative one and it doesn’t work. see the files are visible here: https://zanera.pl/client/StreamingAssets/860/
but the unity game doesn’t see them. how to specify the path to these files? I’ve tried every method.
so im guessing something goes wrong in your GetAssetsPath, where your assetsPath is clientversion.buildV|ersion - wheres the . in your path? is it because its expecting to find some form of subfolder?