Photon PUN:是否可以在更改自定义房间属性时接收事件?

Photon PUN: Is it possible to receive event when custom room properties have been changed?

使用 Photon Unity Networking (PUN) 时,如果某个自定义房间 属性 已被其中一个客户端更改(例如通过调用 PhotonNetwork.room.SetCustomProperties())?

有什么想法吗?

谢谢!

不是 Photon 事件而是 OnPhotonCustomRoomPropertiesChanged Unity 消息在每次更新自定义房间属性时触发。 您可以在 \Assets\Photon Unity Networking\Plugins\PhotonNetwork\Enums.cs

中找到更多此类消息及其用法的详细信息