The future of the RPC

Options
Hi,
I updated my engine to '5.1.0f2' version. And I getting warnings which contains:
"Assets/Photon Unity Networking/Editor/PhotonNetwork/PhotonEditor.cs(922,57): warning CS0618: `UnityEngine.RPC' is obsolete: `NetworkView RPC functions are deprecated. Refer to the new Multiplayer Networking system.'"

So, Photon will be with the old RPC or will be something new?

Thank you.

Comments

  • Tobias
    Options
    In Unity 5.1, the RPC attribute is obsolete but not removed. I would have to check if we can suppress the warnings but afaik, this does not break (yet), right?

    We re-implement the RPC attribute on platforms which are not having it and we can simply enable that for Unity 5.1 or up.
    If it's removed in some version, simply add ours. Modify the compile conditions in RPC.cs. As example for Unity 5.2:
    #if !UNITY_EDITOR && (UNITY_WINRT || UNITY_WP8 || UNITY_PS3 || UNITY_WIIU || UNITY_WEBGL || UNITY_5_2)
  • FaizanKhan
    Options
    Just Replace RPC with PunRPC... Hopeful :smile: