Adding a [Property] attribute to a GameObject whose NetworkMode is set to NetworkMode.Never will be attempted to be read by other players, triggering an Unknown GameObject c8401b65-398b-4d71-a9e6-511b3d4489f3 warning in the console.
3) Play networking.scene and join with another user. Check the console and see the warning
4) Remove the Property attribute from public GameObject NeverNetworked { get; set; } and restart: no error should occur.
Expected behavior
A GameObject set to NetworkMode.Never should not print an error even if the [Property] attribute is present
Describe the bug
Hi,
Adding a
[Property]
attribute to a GameObject whoseNetworkMode
is set toNetworkMode.Never
will be attempted to be read by other players, triggering anUnknown GameObject c8401b65-398b-4d71-a9e6-511b3d4489f3
warning in the console.To Reproduce
1) Download https://github.com/Facepunch/sbox-scenestaging 2) Edit
NetworkTest.cs
by adding the following code:3) Play
networking.scene
and join with another user. Check the console and see the warning 4) Remove theProperty
attribute frompublic GameObject NeverNetworked { get; set; }
and restart: no error should occur.Expected behavior
A GameObject set to
NetworkMode.Never
should not print an error even if the[Property]
attribute is presentMedia/Files
No response
Additional context
No response