Placeholder-Software / Dissonance

Unity Voice Chat Asset
71 stars 5 forks source link

[bug] `Mute` is not defined #82

Closed Nagasaki45 closed 6 years ago

Nagasaki45 commented 6 years ago

Context

I'm trying to set the Mute field. My code looks like that:

comms = GameObject.FindGameObjectWithTag("DissonanceSetup").GetComponent<DissonanceComms>();
comms.Mute = true;

Expected Behavior

To compile and mute the local player as documented.

Actual Behavior

Compilation error:

Type `Dissonance.DissonanceComms' does not contain a definition for `Mute' and no extension method `Mute` of type `Dissonance.DissonanceComms` could be found. Are you missing an assembly reference?

Your Environment

martindevans commented 6 years ago

Hi Nagasaki45,

Sorry about that, it looks like that's been incorrect in the documentation for very long time. It should be IsMuted.

Nagasaki45 commented 6 years ago

Thanks for the super quick response!

BTW, why not to keep the issue open to make sure someone updates the docs?

martindevans commented 6 years ago

why not to keep the issue open to make sure someone updates the docs?

I already updated them. You may need to clear the cache to see the latest docs :)

Nagasaki45 commented 6 years ago

Amazing support! Thank you very very much.