playMaker

Author Topic: Photon Failed To Network Remove Gameobject[SOLVED]  (Read 9995 times)

KillerCreeper

  • Playmaker Newbie
  • *
  • Posts: 44
Re: Photon Failed To Network Remove Gameobject
« Reply #15 on: June 19, 2019, 01:50:13 PM »
It didn't work the first time but I just removed Photon Network Destroy and put Destroy Object instead and it worked! Thank you, Jean!

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Photon Failed To Network Remove Gameobject
« Reply #16 on: July 04, 2019, 03:16:32 AM »
Hi,

ok, Indeed you need to have a very distinct pattern, depending on the object

 - if it is a network object, then pun can destroy it across the game on all client
 - if it is not a network object, then you need to send an RPC with a ref of the object ( you can't pass the gameobject directly) and have each client destroy it on their end.

Bye,

 Jean