docs.unity.cn
    Show / Hide Table of Contents

    Enum GhostComponentSerializer.SendMask

    A bitflag used to mark to which ghost type a component should be serialized to.

    Namespace: Unity.NetCode.LowLevel.Unsafe
    Syntax
    [Flags]
    [Obsolete("Due to changes to the source generator, this enum is now both redundant and deprecated, as it duplicates `GhostSendType`. Unfortunately, not UnityUpgradable to GhostSendType as enum names have changed. (RemovedAfter Entities 1.0)", false)]
    public enum SendMask
    Remarks

    Duplicates GhostSendType, which should be used instead.

    Fields

    Name Description Value
    None

    The component should be not replicated.


    Maps to DontSend.

    0
    Interpolated

    The component is replicated only to interpolated ghosts.


    Maps to OnlyInterpolatedClients.

    1
    Predicted

    The component is replicated only to predicted ghosts.


    Maps to OnlyPredictedClients.

    2
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 20, 2023