Get Photon View Id of gameobject.

Options
Hello guys, i am converting my Unity multiplayer game into Photon Multiplayer and i am stuck in one place where i have to get the PhotonViewID of a game object. In unity networking you can get the view id like this.
character.networkView.viewID

but i do not know how to get the photon View id?

any help will be appreciative thanks

Comments

  • You can use photonView.viewID instead of networkView.viewID if your object inherits from Photon.MonoBehaviour