Photon Voice UWP Build Errors

I am using Unity 2019.4.10. I am able to import Photon Voice (version 2.21) and while playing on the editor I get no errors but when trying to build for UWP I get 76 errors.

Here are some of the errors:

1. Assets\Photon\PhotonVoice\Code\Editor\WebRtcAudioDspEditor.cs(9,41): error CS0118: 'Editor' is a namespace but is used like a type
2. Assets\Photon\PhotonVoice\Code\Editor\ExitPlayModeOnScriptCompile.cs(10,2): error CS0246: The type or namespace name 'InitializeOnLoadAttribute' could not be found (are you missing a using directive or an assembly reference?)
3. Assets\Photon\PhotonVoice\Code\Editor\VoiceConnectionEditor.cs(60,30): error CS0115: 'VoiceConnectionEditor.OnInspectorGUI()': no suitable method found to override
4. Assets\Photon\PhotonVoice\Code\Editor\SpeakerEditor.cs(8,34): error CS0118: 'Editor' is a namespace but is used like a type

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @rowlandjonathan,

    Select the asmdef file "Assets\Photon\PhotonVoice\Code\Editor\PhotonVoice.Editor" and make sure the Import Settings' Platforms do not include UWP and only Editor ticked.