Getting remote player's local transform

Options
Hi guys,
I have been working with Photon for a few months. I wanted to know if there is a quicker way to get hold of a networked player's local copy at the time it was instantiated on the network. In OnPhotonPlayerConnected, I get PhotonPlayer, but I wanted to change that player's local name and I can't do that if I have no reference to the local obj.
Currently I am getting the obj with Gameobject.FindGameObjectsWithTag, but this is super ugly and I thought there must be a simpler way to achieve this. Any suggestion is welcome.
Thanks!

Comments

  • vadim
    Options
    Hi,

    Get reference to the object in OnPhotonInstantiate message handler (see this message documentation for details).