Compilation errors after importing PUN 2 into my project

I have just imported PUN 2 into my project and I get this error



The line of code is this:
// Set up the NetworkingPeer and use protocol of PhotonServerSettings
            ConnectionProtocol protocol = PhotonNetwork.PhotonServerSettings.AppSettings.Protocol;
What can I do?

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Hi @gmenito,

    Thank you for choosing Photon!

    What PUN version is this?
    What Unity version is this?

    Can you try importing PUN2 in a fresh clean new empty project and see if you can reproduce?