Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
4
Question by sampoperala · Jun 01, 2020 at 07:58 PM · multiplayerphotonmultiplayer-networkingpun

Photon Pun 2 "using photon.pun" not working.

this might be a really dumb question but this is my first time using Photon Pun 2 and I have this problem, so i have set up my app id and i can't acces the "using Photon.Pun" at the start of the script, I only have "photon.chat" and "photon.realtime". Again this is propably me being new to photon pun 2, but any help would be appreciated.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Soareverix · Oct 23, 2020 at 10:24 PM 1
Share

Were you able to figure this out? I'm having the same problem.

8 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by LtKelleyUSMC · Aug 14, 2021 at 07:15 PM

Thanks KillitsGaming. I had the same problem. I started out building this game using a version of 2019, but I upgraded Unity to the current version of 2020.2.7f1, and ended up seeing a lot of photon errors, but after doing this Regenerate project files, in: Edit->Preferences->External Tools, and clicking on the Regenerate project files button on the right, I got rid of this using Photon.Pun error, amongst the rest of the errors that were present. Thanks for the solution.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MenimalsEntertainment · Jan 15 at 06:47 PM 0
Share

To anyone still struggling with this- this answer worked for me! I had to check some of the boxes for which files to regenerate but I just did them all and it worked perfectly. Thanks for the solution!

avatar image
1

Answer by GameDevSK · Mar 15, 2021 at 07:12 AM

I think you have downloaded PUN 1 version that's why this error is happening @sampoperala

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by GMONKEY99 · Sep 21, 2020 at 10:08 PM

Make Sure u put ur code inside Photon/PhotonUnityNetworking/Code

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Soareverix · Oct 23, 2020 at 10:26 PM 0
Share

Hmm, I don't see that folder. The version I'm using has Assets/PhotonUnityNetworking and then Demos, Editor, Plugins, Resources, and UtilityScripts as subfolders. As far as I can tell, Photon.Pun doesn't work in any of them.

avatar image TamGamer97 · Oct 24, 2020 at 07:10 PM 2
Share

I have the same problem. can someone help please?

avatar image
0

Answer by Jonas-Weber · Nov 04, 2020 at 04:10 PM

I fixed that problem on my machine by removing and re-importing PUN. May there were some issues while importing.

I also switch to .NET 4.x bevor reimport. But I don't know if this had any affect to it.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by FoenixPhire · Nov 10, 2020 at 09:03 PM

So I had a very similar issue where most of the scripts could not find other scripts such as "using Photon.Pun". I'm not sure if it is some permissions error but as long as a script was not in the same folder it would not be recognized. I'm not really sure how to fix it but changing the unity version to the latest version worked for me. I had been using version 2019.3.12f1 and once I changed it to 2020.1.4f1 the scripts were able to find other scripts within the assets folder without having to be in the same exact folder. Good luck and I hope that this helped.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

233 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Photon RPC is not working in photon? 2 Answers

Callback for DNS entry error using Photon Networking 0 Answers

Spawn point for specific player.Photon Pun2 0 Answers

unity photon 2 not activate child of specific spawned player 0 Answers

Cannot Instantiate Player on PhotonNetwork 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges