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
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).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

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

Tobias
2021-01-25 15:01:12

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