-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WebGL? #30
Comments
WebGL support is not really feasible; Streaming Assets would need to be downloaded first. Plus there's no way to "discover" available Streaming Assets, so a build-time step to collect all the Streaming Assets would have to be added. More trouble than it is worth in my opinion. |
Keeping this open in case someone finds a better way. |
I have an async solution for it. Nothing too fancy, but it does the job for me. I'm trying to keep everything async, so that's no issue for me. I attached 2 files: one for collecting the StreamingAssets folder hierarchy before build and the other being a primordial async wrapper over the BSA library. I'm sure this will be useful for someone, but maybe you can even integrate this into your lib. After that, you have to call this in your build script for WebGL (before building):
And if you want to clean after the build:
|
Thanks, I like this approach a lot. Perhaps async BSA should be a thing. |
Hi, a suggestion, better to put somewhere in docs/description that webgl not supported, it would save people time. |
This does not work in webgl for me.
FileNotFoundException: File not found at BetterStreamingAssets.ThrowFileNotFound (System.String path) [0x00000] in <00000000000000000000000000000000>:0
Was it supposed to work in webgl?
Also - can you help me with a specific project?
The text was updated successfully, but these errors were encountered: