playMaker

Author Topic: photon duplicate ID error  (Read 2644 times)

Ofonna

  • Full Member
  • ***
  • Posts: 230
photon duplicate ID error
« on: March 13, 2017, 04:37:20 PM »
hi guys,
i just started out with photon yesterday so please forgive my question. but i've done everything and when it comes to instantiating my prefab i get these 2 errors

* PhotonView ID duplicate found: 2001. New: View (0)2001 on Cube(Clone) old: View (0)2001 on Cube . Maybe one wasn't destroyed on scene load?! Check for 'DontDestroyOnLoad'. Destroying old entry, adding new. playmaker

* Destroying assets is not permitted to avoid data loss.

thanks for your help.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: photon duplicate ID error
« Reply #1 on: March 14, 2017, 02:08:11 PM »
Hi,

 dealing with Photon Prefab is done in a very special way, you are not allowed to instantiate it or destroy it like that, it has rules .

Are you studying the demo provided? have you read the related documentation? it's very important before starting anything with Photon.

 Bye,

 Jean