docs.unity.cn
    Show / Hide Table of Contents

    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 (GhostRelevancySet, below) are considered "relevant to that client", and thus serialized for the specified connection (where possible, obviously, as eventual consistency and importance scaling rules still apply).


    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
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, June 21, 2023