docs.unity3d.com
    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
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023