Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

duplicate viewID issue on scene load

$
0
0
Hi,

Just started to use the PUN for my project. Everything looks great! Thanks.
Just 1 thing I can't understand currently. Here is editor runtime error:
PhotonView ID duplicate found: 1. New: View (0)1 on GameManager_Network (scene) old: View (0)1 on NetworkManager (scene). Maybe one wasn't destroyed on scene load?! Check for 'DontDestroyOnLoad'. Destroying old entry, adding new.

How I understand that is because of same ViewID (value = 1) on objects at 2 different scenes. My structure looks like that:
1 scene - containing NetworkManager object with PhotonView component viewID = 1
2 scene - containing GameManager_Networkobject with PhotonView component viewID = 1

I can change view ID in prefab instance in the scene, but if I click Apply, that resets to 1 again.

How can I avoid that?

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>