Small bug with Network Visibility and Ownership

Hi,

I’ve noticed a small bug in 1.0.0-pre6 with Network Visibility and Ownership. With at least 2 clients (say Client 1 and 2), if a NetworkObject is not visible by Client 2 and the server change ownership of the object to Client 1, Client 2 will receive this warning:
[Netcode] Deferred messages were received for NetworkObject #5, but it did not spawn within 1 second.

I’ve made a simple script with editor to show the problem.
7987128--1026132--UnityVisibilityBug.png

What seems to happen is even if the NetworkObject is not visible for Client 2 (thus not even present in its scene), the server seems to send to every client the ownership change.
It doesn’t break anything, but Network Visibility is made optimize bandwith so it’s a shame that the server send an ownership change to everyone.

Sounds related to the issue here: [Netcode] Deferred messages were received for NetworkObject #8, but it did not spawn within 1 second

Ah yes, that’s the same issue. Good to know that it will be fixed.