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! Your search result can be found below. Plus, we offer support via these channels:

Try Our

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.

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.

Works in unity editor but not in build

2018-12-17 10:09:41

I'm using Photon Voice 2 together with an already existing PUN 2 project. I get voice when running it in the editor, but when I build the project I get the following error in the development build:

[PhotonVoiceNetwork singleton PhotonVoiceNetwork] Settings are null
[PhotonVoiceNetwork singleton PhotonVoiceNetwork] Connecting to server failed

I have a voice network, recorder in the scene and a photon voice view + speaker on a player prefab.


2018-12-17 10:54:03

Hi @elwe,

Thank you for choosing Photon!

What Photon Voice 2 version are you using?
What Unity version are you using?
What is the target platform of your development build?

Make sure you have "PHOTON_UNITY_NETWORKING" in the Unity Editor Player Settings' "Scripting Define Symbols".
Also, make sure "PhotonServerSettings" ScriptableObject make it to the build.

Does PUN2 manage to connect?
What is the value of Pun.PhotonNetwork.PhotonServerSettings.AppSettings?

2018-12-18 08:20:45

Thank you for your fast reply.
Tried putting in the PHOTON_UNITY_NETWORKING setting, but made no difference.

Unity version 2018.2.10f1
v2.0 (October 10th, 2018)
PUN2: v2.2.1 (3cd5540) according to the changelog.
Target platform is Windows (x86_64)

Not sure how to take "PhotonServerSettings" ScriptableObject into the build.

It looks like PUN2 connects but not voice.

Appsettings are a PhotonRealtime ID and use nameserver = true and I have also tested a self-hosted server for this, which makes no difference.
The voice ID is put under VoiceNetwork + nameserver =true.

2018-12-20 11:53:27

Hi @elwe,

If you import Photon Voice 2 in a fresh clean new empty project and run the demo scenes do you have the same issue?
What is your setup?
Do you enable "Use PUN Settings" from VoiceConnection or use PhotonVoiceNetwork?
If you test on self-hosted Photon Server you need to disable "Use Name Server".

Back to top