[pun2] whats the best way to set parameters for an object with photon view ?

Options

Hi, sorry for noob question. I have a projectile prefab with photon view component. When i instantiate this on the master client, i set some of its properties like which ability or player it is triggered by. I am trying to access these properties when a collision occurs on other clients. How can i make sure that this data is synced across all clients ? Do i send them using IPunObservable or is there an another way i can do it just once when the projectile is created ?

Best Answer

  • Mdrz
    Mdrz
    Answer ✓
    Options

    ok i used RPC and it seems to work!

Answers

  • Mdrz
    Mdrz
    Answer ✓
    Options

    ok i used RPC and it seems to work!