How to solve conflict problems between Photon PUN 2 and Photon Voice 2?

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on Voice.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

How to solve conflict problems between Photon PUN 2 and Photon Voice 2?

JoelGodoy
2022-08-09 12:28:42

I have imported Photon Voice 2 and Photon PUN 2 in a project, but now my editor accuses the following compiling error: Assets\Plugins\PhotonLoadbalancingApi\LoadBalancingPeer.cs(166,25): error CS0121: The call is ambiguous between the following methods or properties: 'PhotonPeer.SendOperation(byte, Dictionary<byte, object>, SendOptions)' and 'PhotonPeer.SendOperation(byte, ParameterDictionary, SendOptions)'

I can't solve this conflict since simply deleting one of the .cs files is not an option (I've already tried). Did anyone had the same issue? I believe it was caused by importing both Photon packages. Any tips on how to solve this are welcome. Thanks.

Comments

Tobias
2022-08-10 14:51:04

Delete the Photon folder in your project (make sure to move anything out, which didn't import with our package) and re-import the latest Voice 2 version that's on the Asset Store. That's it.

Voice 2 currently includes PUN 2 and you don't have to import that.

Back to top