NetworkObserver
Last updated
Last updated
The NetworkObserver uses conditions to determine if a client qualifies to be an observer of an object; any number of conditions may be used and a client will be considered an observer of the object if he passes all active conditions. The NetworkObserver component can be used to override the , or add additional conditions onto the object to which the NetworkObserver is added.
There are , which may be used together. ObserverCondition may also be inherited from . When all conditions are true, the object will become visible to the client.
Each condition must be created as a scriptable object, and dropped into the Network Observer component.
Override Type is used to change how the NetworkObserver component uses the ObserverManager settings. Add Missing will add any conditions from the ObserverManager which are not already on the NetworkObserver. UseManager replaces conditions with those from the manager. Ignore Manager will keep the NetworkObserver conditions, ignoring the ObserverManager entirely.
Update Host Visibility will change the visibility of renderers for clientHost when server objects are not visible to the client. If you wish to enable and disable other aspects during a visibility change consider using the NetworkObject.OnHostVisibilityUpdated event.
Observer Conditions are which conditions to use.