Transfer ownership after leaving multiplayer room

爱⌒轻易说出口 提交于 2020-03-04 05:16:08

问题


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?

来源:https://stackoverflow.com/questions/55958661/transfer-ownership-after-leaving-multiplayer-room

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!