- Home /
How can I find the source of what is calling an InvokeRPC method from Network Behaviour?
I am building a multiplayer game through uNet, and I'm dealing with this bug where a method is being called that tells an object that a player has placed to be checked back into my Object Pooling system, but I can not figure out what is causing this method to be called.
It only seems to happen when the player is inside the collider of the object that is getting checked in, and a raycast gets called from inside. But I've checked every possible way this could happen from my code base and I can not seem to find anything that would cause this problem!
I know exactly what method is being called, and I have attempted to use StackTrace to find the source of the call, but all that turns up is NetworkBehaviours InvokeRPC method which does not lead me to the source.
What I am wondering is if there is a way to call StackTrace on that InvokeRPC method? Or just some way to source out what else could be calling that method?
Any help on the matter is greatly appreciated. I think have a better code editor than mono develop may help me here. Also perhaps updating Unity could magically fix the problem? Either way, thanks ahead of time for any help!
Your answer
Follow this Question
Related Questions
Network how to send data/activate function 1 Answer
Multiplayer Inventory System with RPCs 0 Answers
SyncListString not changing in a Command 0 Answers
ClientRpc not called on Client 1 Answer