- Home /
Turning RPC logging off
My current problem is that my animations are sent over the network by SyncAnimation function but somehow it's spamming or supposed to print to the console everytime the function is called and it spams my console.
Sent RPC call 'SyncAnimation' to all connected clients
each time and it goes like 999+, is there some solution turning the printing/logging off or aren't i supposed to sync that way?
Answer by paskal007r · Dec 18, 2014 at 10:31 AM
I think your problem is not tha the rpc is logged too many times but that it's called too many times. If it's an animation, just use the rpc to start it. If it's a matter of keeping in sync an item across clients when the position that counts is the one calculated by server, use networkview state syncronization of the rigidbody/transform. You should not use rpcs to that frequency if you want to avoid lag.
Your answer

Follow this Question
Related Questions
Debug.log,print not working when run from mobile android 0 Answers
Spam at Log console 2 Answers
What's the difference between print() and Debug.Log() 1 Answer
How do you get console messages in order? 0 Answers
I want to create an in game log which will print actions that the player is making 2 Answers