themars2011

Custom Photon Network scene manager

1 post in this topic

While I was developing the voting system for my kit I was facing an issue in the default Photon scene sync: If you reload the currently active scene (For example to change the game options, such as changing the game mode and completely cleaning the scene), it would only do that on the Master Client. My solution fixes that. I thought others might have the same problem so I figured I'd share my solution I created for the FPS Kit I am working on.

Here is the code:

Please login or register to see this code.

Usage: Put it on a unique object that has only this script on it. It should be in the Main Menu or any other scene that is at least visited once before you want to load a synced scene.

Call it like this:

Please login or register to see this code.

If you find any bugs or strange behaviour, please tell me.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now