Ways to identify/find network objects

The whole answer can be found below.

Please note: The Photon forum is closed permanently. After many dedicated years of service we have made the decision to retire our forum and switch to read-only: we've saved the best to last! And we offer you support through these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Ways to identify/find network objects

NotQuiteSmith
2018-01-07 10:42:07

Is there a definitive guide to the various IDs used throughout Photon? I see "networkID", "photonView.viewID", "photonView.ownerID", "player.ID", "photonView.owner.ID", "photonView.owner.UserId", etc.

I'd like to pass one ID, via RPC, that allows me to find the same networked object on all clients and do something with it.

Thanks!

Comments

NotQuiteSmith
2018-01-07 10:44:12

...and actorID :-)

Lizzard4000
2018-01-07 13:24:12

Sure, just use PhotonView.Find(id) and do something with it : )

Like PhotonView.Find(id).gameObject.name.

Back to top