I'm creating my first multiplayer game using photon and I don't know how to find the photon view id on unity and store it on a script. Thanks
Asked
Active
Viewed 966 times
-1
-
Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Jul 10 '22 at 13:15
1 Answers
0
Cmon, do any effort before asking... It's literally in the first line of documentation...
https://doc-api.photonengine.com/en/pun/v2/class_photon_1_1_pun_1_1_photon_view.html
GetComponent<PhotonView>().viewId;

Paweł Łęgowski
- 716
- 4
- 7