- Home /
 
 
               Question by 
               Kakkapylly · Feb 03, 2020 at 05:15 PM · 
                c#photon  
              
 
              Photon code to all players
How do i make so when i call something like Destroy(); or SetActive(); it effects all players not just the player that called it.
               Comment
              
 
               
              Answer by Captain_Pineapple · Feb 04, 2020 at 09:53 AM
Hey there,
please write some more on your problem and especially on what you already read and tried before you post here... your post makes me feel like you didn't even bother to google for your problem...
 Anyway, short question - short answer: Read on RPC's and the OnPhotonSerializeView() callback. That is what you need to send messages. Destroy can be synced by using Photon.Instantiate and Photon.Destroy for networked objects. 
Your answer