Nebula
Core

SyncAudience

Who receives a behavior's sync state (NetworkBehaviour.SyncAudience).

generated from the sources
public enum SyncAudience : byte

Who receives a behavior's sync state (NetworkBehaviour.SyncAudience). An audience only restricts clients: every worker that holds a ghost of the entity receives every behavior's sync state whatever its audience, because game logic on a neighboring worker (a hit test, an interaction, the next owner after a handover) reads those copies. Owner and Custom therefore mean "the workers, plus these clients". The audience is configuration, not state: declare it on the behavior and do not change it after spawn.

Members

NameValueDescription
Everyone0Every client that has the entity in its interest set. The default, and what Nebula always did.
Owner1Only the client that owns the entity (NetworkIdentity.OwnerClientId). No client at all for an unowned entity.
WorkersOnly2No client. Workers holding a ghost of the entity still receive it.
Custom3The clients the authority chooses with NetworkBehaviour.IsInSyncAudience, evaluated again every NetworkBehaviour.SyncAudienceRefreshTicks ticks and whenever the behavior calls NetworkBehaviour.MarkSyncAudienceDirty.

On this page