We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e762f71 + fcbe7f8 commit b4412e1Copy full SHA for b4412e1
docs/_docs/the-basics/object-visibility.md
@@ -16,7 +16,7 @@ netObject.CheckObjectVisibility = ((clientId) => {
16
// return true to show the object, return false to hide it
17
18
19
- if (Vector3.Distance(NetworkingManager.Singleton.ConnectedClients[clientId].PlayerObject.position, transform.position) > 5)
+ if (Vector3.Distance(NetworkingManager.Singleton.ConnectedClients[clientId].PlayerObject.transform.position, transform.position) > 5)
20
{
21
// Only show the object to players that are within 5 meters. Note that this has to be rechecked by your own code
22
// If you want it to update as the client and objects distance change.
0 commit comments