Question: Unnecessary using directive

"The type or namespace name 'Pun' does not exist in the namespace 'Photon' (are you missing an assembly reference?) "

I was just following the photon tutorial https://doc.photonengine.com/en-us/pun/current/demos-and-tutorials/pun-basics-tutorial/lobby-ui, but the script that I'm supposed to type in throws errors in VsCode. The code runs fine in unity and doesn't show any bugs there, and also didn't show any errors in vs code in a different project with the exact same script. Any ideas would be much appreciated.

Comments

  • Lara
    Lara
    edited October 2020
    I had the same issue. VSCode updated and the problem began. It's something related to C# plugin. Downgrade to version 1.23.4 and it works again!