diff --git a/Editor/Tools/Networking/NetworkObject_Editor.cs b/Editor/Tools/Networking/NetworkObject_Editor.cs index 3714b37..ab3b2c2 100644 --- a/Editor/Tools/Networking/NetworkObject_Editor.cs +++ b/Editor/Tools/Networking/NetworkObject_Editor.cs @@ -111,6 +111,8 @@ namespace Passer { Photon.Pun.PhotonView photonView = gameObject.GetComponent(); if (photonView == null) photonView = gameObject.AddComponent(); + if (photonView.ViewID == 0) + Photon.Pun.PhotonNetwork.AllocateViewID(photonView); Photon.Pun.PhotonTransformView transformView = gameObject.GetComponent(); if (transformView == null) {