In our multiplayer app based on Unity
and PUN
, we have disabled autoCleanUpPlayerObjects
, because it was destroying some necessary objects . Now, when player leaves room, ownership of those objects get transferred to scene, which prevents user to control those objects even in single player mode.
We tried manually transferring ownership to self after leaving room, which works but throws this error:
Operation failed: OperationResponse 253: ReturnCode: -2 (Unknown operation code). Parameters: {} Server: MasterServer
How can we get around this problem without destroying PhotonView and other networking components and adding them each time multiplayer mode starts?