Debugging my code I faced some unexpected behavior.
I called an RPC using uLink.NetworkView
on the server passing some parameter including a GameObject
tagged as Player
.
Inside that RPC I make a call to GameObject.FindObjectsWithTag("Player")
What I refer to by saying "unexpected" is that that function returns all the gameobjects in hierarchy INCLUDING the gameobject passed as parameter to the RPC call.
I noticed that inside the editor it appears in hierarchy the gameobject passed to the RPC but without all the components BUT the transform.
My question is to know exactly how the scope is working, I seem to understand that the scope of the FindObjectsWithTags seems to include RPC parameters but without the most informations.
Any clue about this?