Unity using Photon.Pun not working
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on PUN.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
Unity using Photon.Pun not working
Loffen
2021-01-22 11:17:19
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.
Tharindu_Nilakshana
2021-07-05 19:18:28
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
Back to top