Hi there. I´m trying to set up a simple volume slider but an unexpected error keeps popping. Here is the code.
The error says: “Type AudioMixer does not contain a definition for SetFloat, and no extension method SetFloat of type AudioMixer could be found. Are you missing an assembly reference?”
It goes attached to a slider. It´s crazy because this works perfectly fine in other projects.
I’m worried it is a bug. Does anyone have an idea what could be happening here?
I´m using Unity 2018.3 version. (It worked fine in other projects, same version). Also, I don’t think it has anything to do with the AudioMixer configuration. And the parameters are correctly exposed.