Any 'easy' way for Photon to automatically cleanup?
Options
waxx
✭
Hey guys.
I'm sitting here with a pretty much finished game and suddenly whoops I have to implement level restarting after players` death. Now the problem is there are network-aware objects created in the scene and I'm wondering if there's any way to destroy them all at once?
Probably a long shot, but I had to try :P
I'm sitting here with a pretty much finished game and suddenly whoops I have to implement level restarting after players` death. Now the problem is there are network-aware objects created in the scene and I'm wondering if there's any way to destroy them all at once?
Probably a long shot, but I had to try :P
0
Comments
-
Hi,
How do you restart?
When client leaves the room, all network objects should be automatically destroyed.0 -
No, I don't leave the room. I want to keep connection and restart the map. But I found PhotonNetwork.DestroyAll() and I think I'll use it0
-
Documentation has detailed info on what PhotonNetwork.DestroyAll() does. Read it to make sure that this is what you want.0