NetworkObject
CheckObjectVisibility
doesn't work on client connection
#3185
Labels
NetworkObject
CheckObjectVisibility
doesn't work on client connection
#3185
Description
I want to spawn a networkprefab without any client visibility, first i tried to set no observers before spawn:
this results a spawned object with zero observers, but when a late-join client connects, the object gets spawned on client. The documentation says this is the intended normal behavior, because it only works at the initial spawning.
Then, the documentation says the
CheckObjectVisibility
will work at both initial spawning and new client connection, so i tried this:it did spawn with no observers as the previous approach, but when late-join client connects, it still spawn the object on client.
Reproduce Steps
NetworkObject.CheckObjectVisibility += _ => false;
Actual Outcome
a spawned object with visibility always set to false still spawns on late-join client
Expected Outcome
a spawned object with visibility always set to false should be invisible to all connected client and future late-join clients
Environment
The text was updated successfully, but these errors were encountered: