PunRPC issues on build
I am using Pun 2 and I encountered a really weird behavior,
I have coded the RPC logic so it works great on the Unity editor, I have checked multiple times from different laptops - however, when I build an APK, it seems like the RPCs getting called sometimes, and sometimes not.
They are being called one time for sure, but after that, no more calls are being made.
What I've checked -
- The ServerSettings - refreshed the RPC list, didn't help.
- Checked the build logs from the device, nothing there.
I don't have any concrete info for diagnosing this case, but for sure there's unexpected/unwanted behavior in the build, since it's working perfectly in the editor, so checking the logic aspect of the code seems redundant.
What can cause such discrepancies between the editor and the build..?
I think the issue starts on this line:
this.photonView.RPC("UpdateBallValues", RpcTarget.Others, ballRB.position, ballRB.velocity, ballRB.angularVelocity);
After it's being called, the issue starts.
Thank you in advance,