Problem with PhotonNetwork.Instantiate after updating PUN 2
I've been using this since a while, but in the moment I updated I'm not able to make it to work again. The error is the following one:
And, for some reason, the balls "duplicate" infinitely. That's just since I updated PUN. Hope someone can help me.
PhotonView ID duplicate found: 1002. New: View 1002 on ball(Clone)(Clone) old: View 1002 on ball(Clone) . Maybe one wasn't destroyed on scene load?! Check for 'DontDestroyOnLoad'. Destroying old entry, adding new.
UnityEngine.Debug:LogError(Object)
Photon.Pun.PhotonNetwork:RegisterPhotonView(PhotonView) (at Assets/Photon/PhotonUnityNetworking/Code/PhotonNetworkPart.cs:843)
Photon.Pun.PhotonView:Awake() (at Assets/Photon/PhotonUnityNetworking/Code/PhotonView.cs:266)
UnityEngine.Object:Instantiate(GameObject, Vector3, Quaternion)
BallMovement:OnCollisionEnter(Collision) (at Assets/Mia/Scripts/BallMovement.cs:61)
And, for some reason, the balls "duplicate" infinitely. That's just since I updated PUN. Hope someone can help me.
0
Comments
-
Here's the duplication image0
-
Omg just saw I had a GameObject where the same prefab was......... Sorry. It never fails, when I ask for help, I find the solution.0