UI events VS audio listener <missing AudioListener.[method]>

I’m trying to create a simple “mute” button for my game and I’d like to use a Toggle.
In the onValueChanged I’ve two options under “Dynamic bool”: “enable” and “pause”.
When I select “enable” it works fine in the editor (except I get endless debug.log “no audio listener”) but in web build it plainly gets ignored.
When I select “pause” (or any static option except “enable” for what matters) what I get is that the selection bar says “<missing AudioListener.[method]>” and doesn’t work.
here’s a screenshot:

Am I doing something wrong?
Is it a bug?
Am I missing something important?

its a bug, report it. I have the same issue too.

1 Like

update: looking at the documentation I’ve found out that it’s actually a static method. Maybe statics are not expected to be used like that?
if not, I’ll definitely report as a bug…

I thought I posted that static methods always return the same error :eyes:, must’ve forgotten it, so it’s a BUG.

1 Like