Photon Voice (V1) Error in script
Options
mesus
✭
in Photon Voice
Photon Voice Ver.1.16
While importing Photon Voice in unity some scripts throwing error, scripts names are -
Cause of Error:
Namespace'' contains a definition conflicting with alias 'Voice'
using Voice = ExitGames.Client.Photon.Voice;
In above line they used Voice which is a predefined type so that variable causing the error.
Fix:
using Voice = ExitGames.Client.Photon.Voice;
using Voice1 = ExitGames.Client.Photon.Voice;
Here i changed Voice to Voice1 so now its not a type.
You need to change that variable wherever it has been used.
Thank You.
While importing Photon Voice in unity some scripts throwing error, scripts names are -
- PhotonVoiceNetwork.cs
- DelayProcessor.cs
- photonVoiceRecorder.cs
Cause of Error:
Namespace'' contains a definition conflicting with alias 'Voice'
using Voice = ExitGames.Client.Photon.Voice;
In above line they used Voice which is a predefined type so that variable causing the error.
Fix:
using Voice1 = ExitGames.Client.Photon.Voice;
Here i changed Voice to Voice1 so now its not a type.
You need to change that variable wherever it has been used.
Thank You.
0
Comments
-
Hi @mesus,
This is the first time we get such report especially knowing that Photon Voice 1.16 is out since July.
If you can switch to Photon Voice 2 then I recommend that because Photon Voice 2 is the new updated version.
But we also want to investigate the issue you are having:
- did you import another asset in the new clean fresh empty project or just Photon Voice 1?
- could you try finding out the other alias or namespace clashing with Photon Voice one? what is the exact error? maybe hover over the error in Visual Studio and take a screenshot with the possible values...try using Voice in the code to see where it leads you (e.g. F12, go to definition)1