Unity using Photon.Pun not working

unity is giving me a red line beneath "Pun" in: using Photon.Pun, and i do not know how to fix it.

Comments

  • It might be a Unity bug, where the project does not reference the needed libraries. I think this was a problem in some 2019.x versions. Maybe use a newer LTS version.
  • Hey everyone. Got it FIXED!
    Solution (it was a Unity issue):
    In Unity, goto Edit > Preferences > External Tools > External Script Editor, and point it to Visual Studio..
    Why this was so hard to find, I have no idea. But now my Photon solutions and namespaces properly transfer from Unity to Visual Studio. Hooah!

    Also moved the script to where the photon scripts are