Class NetworkProximityChecker
Component that controls visibility of networked objects for players.
Any object with this component on it will not be visible to players more than a (configurable) distance away.
Inheritance
System.Object
NetworkProximityChecker
Syntax
[Obsolete("The high level API classes are deprecated and will be removed in the future.")]
public class NetworkProximityChecker : NetworkBehaviour
Fields
checkMethod
Which method to use for checking proximity of players.
Declaration
public NetworkProximityChecker.CheckMethod checkMethod
Field Value
forceHidden
Flag to force this object to be hidden for players.
If this object is a player object, it will not be hidden for that player.
Declaration
Field Value
Type |
Description |
System.Boolean |
|
visRange
The maximim range that objects will be visible at.
Declaration
Field Value
Type |
Description |
System.Int32 |
|
visUpdateInterval
How often (in seconds) that this object should update the set of players that can see it.
Declaration
public float visUpdateInterval
Field Value
Type |
Description |
System.Single |
|
Methods
OnCheckObserver(NetworkConnection)
Declaration
public override bool OnCheckObserver(NetworkConnection newObserver)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
OnRebuildObservers(HashSet<NetworkConnection>, Boolean)
Declaration
public override bool OnRebuildObservers(HashSet<NetworkConnection> observers, bool initial)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Overrides
OnSetLocalVisibility(Boolean)
Declaration
public override void OnSetLocalVisibility(bool vis)
Parameters
Type |
Name |
Description |
System.Boolean |
vis |
|
Overrides