Hi to all. I'm making multiplayer mobile game in Unity. For optimization I decided to use culling bout only for sending, clients must receive everything. I set up everything and customized NetworkCullingHandler so it call PhotonNetwork.SetSendingEnabled instead of PhotonNetwork.SetInterestGroups. Everithing works fine for players , connected at the beginning of match, but when new player connected later, it doesn't received actual position of objects on the scene and their actual owners, that's for objects that group (photonView.group) is changed.
1. It was work fine before i started to work on culling. And still work at another scene, where culling not added.
2. After connection client receives messages as usual: changing ownership and syncronizing objects, that correct ownership he already received.
3. I manually call PhotonNetwork.SetSendingEnabled to allow all groups to receive. I call it earlier then connected to the room. Checked later, allowedReceivingGroups contains all the groups possible.
4. I was looking in the method NetworkingPeer.OnEvent at moment, client connected to the room, to be sure that sync events not just filtered, but not received at all. I saw only sync events from objects with group 0.
My assumption is that photon cloud not sending syncronization from objects in group different from 0 to new clients at connection. Can anybody help me with that? I found very few information about culling as well as about group.
I use:
Unity 2018.1.3f1, PUN plugin 1.90, Photon cloud.
1. It was work fine before i started to work on culling. And still work at another scene, where culling not added.
2. After connection client receives messages as usual: changing ownership and syncronizing objects, that correct ownership he already received.
3. I manually call PhotonNetwork.SetSendingEnabled to allow all groups to receive. I call it earlier then connected to the room. Checked later, allowedReceivingGroups contains all the groups possible.
4. I was looking in the method NetworkingPeer.OnEvent at moment, client connected to the room, to be sure that sync events not just filtered, but not received at all. I saw only sync events from objects with group 0.
My assumption is that photon cloud not sending syncronization from objects in group different from 0 to new clients at connection. Can anybody help me with that? I found very few information about culling as well as about group.
I use:
Unity 2018.1.3f1, PUN plugin 1.90, Photon cloud.