- Home /
Is my rpc sending or can I debug the buffer?
I have a complete networking game and am adding some modifications, The problem is I have a function with the RPC attribute and it has a networkview and I call it using all buffered, the server is calling the function and the function just changes the texture of the gameobject, for some reason nothing is changing. Is there some way to debug the buffer and check if the function call is sent properly?
Answer by strachpr01 · Aug 01, 2012 at 05:58 PM
Debug in the rpc call and then you know if the function is being called or not ie
void SendRPC(){ Debug.Log("sending RPC"); networkView.RPC("DoSomething", RPCMode.AllBuffered); }
[RPC] void DoSomething(){ Debug.Log("rpc received");
}
So the lack of a debug message would then mean it is not working if so thank you.
that's correct if you do not receive both the messages then something is not being called. If not please post a snippet of your code and I will try to work out the problem
For some reason this rpc did not go through, but all of my other rpcs are working fine. I changed the code to actually not require an rpc, thank you for your help.
no problem I have had lots of lovely problems like this myself
Your answer
Follow this Question
Related Questions
How do you detect when the Network RPC buffer playback is complete? 0 Answers
Question about buffered rpc calls 1 Answer
How to clean buffer after some time? 0 Answers
Buffered Network.Destroy? 0 Answers