- Home /
RPC sync issues
I am experiencing a problem with RPC calls on GameObjects after instantiating them via another RPC. The RPC called on the network-instantiated GameObject ends up being executed BEFORE the RPC actually creating the GameObject on the client. I've attached a small demo showcasing this issue.
To reproduce the problem, start 2 instances of the supplied demo, the one joining inside Unity, so you can see the debug log. Click 'Host' on one and 'Join' on the other. There should be 2 green cubes on both instances.
Error text on the client:
View ID AllocatedID: 1 not found during lookup. Strange behaviour may occur
Could't invoke RPC function 'rpc_SetColor' because the networkView 'AllocatedID: 1' doesn't exist
Your answer
Follow this Question
Related Questions
Instantiate prefab and passing parameter 1 Answer
Unet NetworkServer.Spawn() not working 5 Answers
Does Unity merge RPC calls into one packet per tick? 0 Answers
PhotonView over GameObject 2 Answers