Photon gives errors just after import

Options

I am using unity 2019.4.9f1(also i can't update it for other reasons) when i import PUN2.40, it gives me 9 errors(also for some reason it didn't ask me for app id)errors list:

Assets\Photon\PhotonUnityNetworking\Code\ServerSettings.cs(37,16): error CS0246: The type or namespace name 'PunLogLevel' could not be found (are you missing a using directive or an assembly reference?)


Assets\Photon\PhotonUnityNetworking\Code\PhotonNetwork.cs(2919,70): error CS0246: The type or namespace name 'RpcTarget' could not be found (are you missing a using directive or an assembly reference?)

Assets\Photon\PhotonUnityNetworking\Code\PhotonNetworkPart.cs(1194,70): error CS0246: The type or namespace name 'RpcTarget' could not be found (are you missing a using directive or an assembly reference?)

Assets\Photon\PhotonUnityNetworking\Code\PhotonNetwork.cs(252,23): error CS0246: The type or namespace name 'ConnectMethod' could not be found (are you missing a using directive or an assembly reference?)

Assets\Photon\PhotonUnityNetworking\Code\PhotonNetwork.cs(323,23): error CS0246: The type or namespace name 'PunLogLevel' could not be found (are you missing a using directive or an assembly reference?)

Assets\Photon\PhotonUnityNetworking\Code\PhotonView.cs(602,44): error CS0246: The type or namespace name 'RpcTarget' could not be found (are you missing a using directive or an assembly reference?)

Assets\Photon\PhotonUnityNetworking\Code\PhotonView.cs(628,50): error CS0246: The type or namespace name 'RpcTarget' could not be found (are you missing a using directive or an assembly reference?)

Assets\Photon\PhotonUnityNetworking\Code\PhotonView.cs(123,16): error CS0246: The type or namespace name 'ViewSynchronization' could not be found (are you missing a using directive or an assembly reference?)

Assets\Photon\PhotonUnityNetworking\Code\PhotonView.cs(134,16): error CS0246: The type or namespace name 'OwnershipOption' could not be found (are you missing a using directive or an assembly reference?)


Can someone help me please?

Best Answer

  • L0g0Z0g0
    L0g0Z0g0
    Answer ✓
    Options

    I fixed it, the problem was somewhere in project files.. Unfortunately, now another one occurred. I will create another discussion for that.

Answers

  • L0g0Z0g0
    L0g0Z0g0
    Answer ✓
    Options

    I fixed it, the problem was somewhere in project files.. Unfortunately, now another one occurred. I will create another discussion for that.