Enum GhostRelevancyMode
Specify how the ghosts added to the relevancy set should be used.
Namespace: Unity.NetCode
Syntax
public enum GhostRelevancyMode
Fields
Name | Description | Value |
---|---|---|
Disabled | The default. No relevancy will applied under any circumstances. |
0 |
SetIsRelevant | Only ghosts added to relevancy set ( Note that applying this setting will cause all ghosts to default to not be replicated to any client. It's a useful default when it's rare or impossible for a player to be viewing the entire world. |
1 |
SetIsIrrelevant | Ghosts added to relevancy set (GhostRelevancySet) are considered "not-relevant to that client", and thus will be not serialized for the specified connection. In other words: Set this mode if you want to specifically ignore specific entities for a given client. |
2 |