-
Notifications
You must be signed in to change notification settings - Fork 11
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
Rendering a Rive file with sound effects in Unity does not play the effects #61
Comments
This should be supported already. Could you share an example of the script you're using to display the Rive file? |
Hi @damzobridge, Here are the steps I've followed:
|
Thanks for sending over the project. It looks like the example projects are using an older version of the
We'll update the example projects soon to include audio support. |
I've updated the RiveScreen.cs with the aforementioned changes and I am able to hear the audio now. Thank you @damzobridge |
Hi @damzobridge, with the aforementioned update, I am able to hear the audio when played in the Unity Editor but when I built the same to WebGL, the audio in the Rive file is not played; I even tried clicking in the browser once but that did not play the audio either. |
Thanks, you're right, audio currently works on the other platforms, but not webGL. We're looking into the issue now. In the meantime, I recommend using Rive Events, that way you can trigger audio natively in Unity in response. |
@trdroid This is happening because Unity doesn't support |
Thank you @damzobridge for specifying the reason as to why it's currently broken in WebGL. Like you've mentioned, I'd resort to Rive Events and Unity Audio to get around this. |
Hi,
I rendered a Rive file with sound effects in Unity and noticed that the sound effects are not played. I was wondering if this would be supported in the future.
Thank you.
The text was updated successfully, but these errors were encountered: