OnPhotonSerializeView in single player

I'm implementing a custom Photon Server to improve synchronization, reconnection and to avoid cheats/hacks.

How can I make Photon call OnPhotonSerializeView in single player rooms so the server can check for cheats/hacks (like teleporting or going through walls)?. It would also help me test the custom server.



  • Hi @Jabefa,

    this is not possible. OnPhotonSerializeView is only called when there are two or more clients in the room.

    Does the player have a big advantage by cheating when he is alone in the room? If so and you want to do something again such a scenario, you have to think about another solution. RaiseEvent for example might help when you send the player's position regularly and let the server check if those sent updates are valid.
Sign In or Register to comment.