Skip to content
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

This RNBO UnityPlugin does not work with WebGL builds. #47

Closed
tomo0407 opened this issue Aug 29, 2024 · 1 comment
Closed

This RNBO UnityPlugin does not work with WebGL builds. #47

tomo0407 opened this issue Aug 29, 2024 · 1 comment
Assignees

Comments

@tomo0407
Copy link

Thanks to this repository, I was able to convert the RNBO patch into a UnityPlugin. Thank you.

On the other hand, when the created application was built in HTML5, no sound was produced and the following error appeared in the console.

Output.framework.js.gz:10 Audio effect My Custom Plugin could not be found. Check that the project contains the correct native audio plugin libraries and that the importer settings are set up correctly. _JS_Log_Dump @ Output.framework.js.gz:10

It seems that the plugin I created (My Custom Plugin) is not properly tied to the build.

Does this RNBO plugin for Unity support WebGL builds?

Do you know how to use RNBO's Unity plugin for web application builds?

@jinpavg jinpavg self-assigned this Aug 29, 2024
@jinpavg
Copy link
Contributor

jinpavg commented Aug 29, 2024

Hi @tomo0407 , thank you for reaching out here and checking out this repo.

No, this plugin will not function in a Unity WebGL build, this is because Unity uses a very different audio implementation for WebGL, you can read more about it here: https://docs.unity3d.com/2018.3/Documentation/Manual/webgl-audio.html

However, you can certainly use RNBO for audio in a Unity WebGL project. I'd recommend a strategy like this

I actually have an example of this, with a tutorial, but I want to caution you that this tutorial is very old, and references an earlier version of Unity, and earlier version of RNBO, and many of the links will be broken: https://github.com/jinpavg/rnbo-unity-webgl/blob/main/unity-tutorial.md

However, there is a working example of what I've described in this repo there, you can find a simple .jslib plugin in unity-scripts/Plugins/

@jinpavg jinpavg closed this as completed Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants