- Home /
trying to catch photonNetwork instantiated object of another user
Hi guys Im creating a multiplayer game , on one player i use photon.instantiate to ship gameobject on the other user I need to capture this same gameobject in order to change some parametrs on it,
I tried to use
PhotonView.Find(ObjectViewId);
but i keep getting a null
i tried to put an id to the ship itself and catch it by:
GameObject.Find();
but the id keeps returning to its initial value
there must be another way
thanks in advance
Gal
Hey!
You could do something fully different ins$$anonymous$$d for networksyncronisation. Edit your prefab that u have created for instantiation. Add there a networkview and switch it to realable delta compressed(updates just in case of a changed value), or Unreliable (sends constantly data packs). If there is just a script that has to been updated, drag it in. I will be updated as well ins$$anonymous$$d of your transform. Enjoy it!