Help me with Error please

Options
Hi I want to do multiplayer game and I have installed Photon Networking to my project, but there is Error

Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs(483,164): error CS0619: `UnityEditor.BuildTarget.iPhone' is obsolete: `Use iOS instead (UnityUpgradable) -> iOS'

What I need to do right now?
I cant run my game and i cant open server setting because there was no window which will be asking me for my email to setup server settings.

Sorry for my English.

I think you will help me.

Bye.

Answers

  • TIunity
    Options
    Hello. I also have the same error occurred

    This error be caused by the name of the Enum value "UnityEditor.BuildTarget" is old
    Please open the file of “Assets/Photon Unity Networking/Editor/Photon Network/Photon Editor.cs”
    And, change the following code on line 483
    "else if ... (BuildTarget.iPhone)) "
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, ̄ ̄ ̄ ̄
    ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,↓
    ,,,,,,,,,,,,,,,,,,,,(BuildTarget.iOS)

    My things now work with this!
  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Denis1705, @TIunity,

    Thank you for choosing Photon!

    What PUN version and Unity version do you use?