"We have no such PhotonView!" as Warning

hi All, i use PUN to build an MOBA
im get warning about photonview message.
is caused by : "PhotonNetwork.automaticallySyncScene = true;" ?
OR
any other caused?

the messages show while Start to Load a level (PhotonNetwork.automaticallySyncScene = true;)
full message as warning : (Player)
Received OnSerialization for view ID 1001. We have no such PhotonView! Ignored this if you're leaving a room. State: Joined
UnityEngine.Debug:LogWarning(Object)
NetworkingPeer:OnSerializeRead(Hashtable, PhotonPlayer, Int32, Int16) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:3344)
NetworkingPeer:OnEvent(EventData) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1837)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(Byte[])
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:83)

and then in my minion, i have message too while destroy
Received OnSerialization for view ID 21. We have no such PhotonView! Ignored this if you're leaving a room. State: Joined
UnityEngine.Debug:LogWarning(Object)
NetworkingPeer:OnSerializeRead(Hashtable, PhotonPlayer, Int32, Int16) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:3344)
NetworkingPeer:OnEvent(EventData) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1837)
ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(Byte[])
ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()
ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()
PhotonHandler:Update() (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/PhotonHandler.cs:83)

anyone can help me how to solved this?

last time, i just try to add code (minionDestroy.cs) :
bool isQuitting = false;
void OnApplicationQuit ()
{
	isQuitting = true; 
} 
	
void OnDestroy ()
{ 
	if (!isQuitting) 	{ //effect of Destroy	}
	
PhotonNetwork.Destroy(this.gameObject.GetComponent<PhotonView>());
}

but..not solved

Comments

  • Hi,

    Why can't you ignore the warning as message advises?
    Something does not work because of that warning?
  • vadim wrote:
    Something does not work because of that warning?

    no matter :mrgreen: