The Photon Forum
is Closed Permanently.

After many dedicated years of service, we have made the decision to retire our Forum and switch to read-only: we´ve saved the best to last! Your search result can be found below. Plus, we offer support via these channels:

Try Our
Documentation

Please check if you can find an answer in our extensive documentation on PUN.

Join Us
on Discord

Meet and talk to our staff and the entire Photon-Community via Discord.

Read More on
Stack Overflow

Find more information on Stack Overflow (for Circle members only).

Write Us
an E-Mail

Feel free to send your question directly to our developers.

Issue when master client leave

Clevereen
2020-11-25 20:43:41

Hello all,

I'm developping a game with 2 players using a same room. So one is master client and the other a client.
i have a big issue when the master client leaves the room :

1-If the master client leaves the room, it seems that the scene is "reset" to initial loading state. For an example I intentionally destroy a game object (with no photonview), when master client leave that object appears again and all instantiated game object are destroyed.
2- but if the client leaves the room, all the instantiated game object remains.

I want only the master client instantiated game object to be destroyed and keep the scene exactly the same way.

Comments

Clevereen
2020-11-25 21:46:41

Okay! I found what was causing this problem!
If you want to remain in the scene with all the object :
DON'T USE

but use this instead:

Back to top