1.8 DestroyPlayerObjects not work anymore
Options
friuns
✭
public void OnPhotonPlayerDisconnected(PhotonPlayer player)
{
if (PhotonNetwork.isMasterClient)
PhotonNetwork.DestroyPlayerObjects(player);
this does nothing after i updated to 1.8, in 1.6 they removed always automaticly
PhotonPlayers are removed but not photonViews lol
Tobias, in workerDemo create room, join here and leave, the player stays here(its not removed). When 1.9 come :P?
{
if (PhotonNetwork.isMasterClient)
PhotonNetwork.DestroyPlayerObjects(player);
this does nothing after i updated to 1.8, in 1.6 they removed always automaticly
PhotonPlayers are removed but not photonViews lol
Tobias, in workerDemo create room, join here and leave, the player stays here(its not removed). When 1.9 come :P?
0
Comments
-
so any way to fix this?0
-
Mike wanted to answer earlier today but somehow it seems he didn't.
I will look into it tomorrow.0 -
I'm looking into this right now.0
-
-
It is working now! Thanks!0
-
Work when there is 2 players, but when i have 16 players seems its not work. Or there is some other bugs. 1.6 still most stable version)0
-
That's odd. I've tested it with 3 players, which should act the same as with 16 players. Sorry for the trouble!
Can you repro it in the demo worker scene with e.g. 3 players (or more?)
Does it always happen or only rarely? If it's rare I suspect the master client switching sometimes causes problems with player cleanups.0 -
its hard but i will try. Its can be any other bug, its just not work when i put game online with 1.80
-
A`m download NetworkingPeer.cs. Error destroy fixes.
New error: on use: "OnMasterClientSwitched(player: PhotonPlayer)" player = null
Sorry, my bad english.0 -
Where I use this NetworkingPeer.cs? No have any file to overwrite! How to use it???0
-
Hi @ConceptFactory,
This forum discussion is too old.
You are probably using PUN 2 which does not have "NetworkingPeer.cs" file as it's part of PUN Classic only.
The issue here is most likely not relevant anymore.0