diff --git a/Assets/Mirror/Runtime/NetworkVisibility.cs b/Assets/Mirror/Runtime/NetworkVisibility.cs index 03b8899cc..6dcb0ab59 100644 --- a/Assets/Mirror/Runtime/NetworkVisibility.cs +++ b/Assets/Mirror/Runtime/NetworkVisibility.cs @@ -23,30 +23,17 @@ public static class NetworkVisibilityObsoleteMessage [DisallowMultipleComponent] public abstract class NetworkVisibility : NetworkBehaviour { - /// - /// Callback used by the visibility system to determine if an observer (player) can see this object. - /// If this function returns true, the network connection will be added as an observer. - /// - /// Network connection of a player. - /// True if the player can see this object. - // + /// Callback used by the visibility system to determine if an observer (player) can see this object. // Called from NetworkServer.SpawnObserversForConnection the first time // a NetworkIdentity is spawned. public abstract bool OnCheckObserver(NetworkConnection conn); - /// - /// Callback used by the visibility system to (re)construct the set of observers that can see this object. - /// Implementations of this callback should add network connections of players that can see this object to the observers set. - /// - /// The new set of observers for this object. - /// True if the set of observers is being built for the first time. + /// Callback used by the visibility system to (re)construct the set of observers that can see this object. + // Implementations of this callback should add network connections of + // players that can see this object to the observers set. public abstract void OnRebuildObservers(HashSet observers, bool initialize); - /// - /// Callback used by the visibility system for objects on a host. - /// Objects on a host (with a local client) cannot be disabled or destroyed when they are not visible to the local client. So this function is called to allow custom code to hide these objects. A typical implementation will disable renderer components on the object. This is only called on local clients on a host. - /// - /// New visibility state. + /// Callback used by the visibility system for objects on a host. public virtual void OnSetHostVisibility(bool visible) { foreach (Renderer rend in GetComponentsInChildren())