-2

I'm trying to import unity Pun2 free assets but when i try to access any of the method i get an error. also all the imported scripts are showing errors. i have checked supported unity version for pun2. it says 2017.4.7+ and i'm using 2019.4.11f Please someone help me i'm stuck here from last 2 days

enter image description here

derHugo
  • 83,094
  • 9
  • 75
  • 115
  • 1
    What are these errors you get? Please add them to your question as **text** – derHugo Jan 10 '21 at 12:37
  • photon methods are not recognized in script and also when i change MonoBehaviour to MoboBehaviorPunCallbacks i get "The type or namespace name 'MonoBehaviourPunCallBacks' could not be found (are you missing a using directive or an assembly reference?)" – SANKET JADHAV Jan 11 '21 at 15:10

2 Answers2

1

Are you getting that error only in vscode or in Unity as well?

I had a similar error where VSCode could not find anything related with Photon. In order to solve it, I installed the latest version of mono and then set in VSCode preferences "omnisharp.useGlobalMono": "always.

Robert Mengual
  • 374
  • 3
  • 10
0

Figured it out. i installed unity 2019.4.17 and now it's working. thank you for your help guys.