PhotonNetwork.Destroy throws out a warning message

Options
Hi,

I instantiate the players while they are connected and in a room by using:
refPlayerGameObject = PhotonNetwork.Instantiate(characterName, refSpawnPoint.position, refSpawnPoint.rotation, 0);

The viewID is set to for example 1008 and everything works well. But when a player is changing his character, I remove the old one:
PhotonNetwork.Destroy( refPlayerGameObject );

Then I get that error message:
Ev Destroy for viewId: 1008 sent by owner: True this client is owner: False
UnityEngine.Debug:Log(Object)
NetworkingPeer:OnEvent(EventData) (at Assets/Photon Unity Networking/Plugins/PhotonNetwork/NetworkingPeer.cs:1554)
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:76)

Unity 4.2.2f1 and PUN 3.2.2.1

Made I a mistake?

All the best,
Klaus

Comments

  • Tobias
    Options
    I guess I forgot to remove some debug output. The info that this logs for me is ok: The owner is destroying the GO (as intended).
    Thanks for the heads up. I will tweak this for the next PUN version.
    By the way: PUN versions are the PhotonNetwork.versionPUN value. I think you posted the version of the library (dll)? I still approximately know what you mean. No worries.
  • Hi Tobias,

    thank you very much for your quick reply. Now I'm happy and don't worry about the warning.

    All the best,
    Klaus