docs.unity.cn
    Show / Hide Table of Contents

    Enum GhostSpawnBuffer.Type

    The ghost mode to use to spawn th entity

    Namespace: Unity.NetCode
    Syntax
    public enum Type

    Fields

    Name Description Value
    Unknown

    The ghost has not be classified yet and it is expected that a classification system will change this value to the proper ghost mode (see also GhostSpawnClassificationSystem).


    0
    Interpolated

    The new ghost must be spawned as interpolated. The ghost creation is delayed until the InterpolationTick match (or is greater) the actual spawn tick on the server. See GhostSpawnSystem and also PendingSpawnPlaceholder.


    1
    Predicted

    The ghost is a predicted ghost. A new ghost instance is immediately created, unless the PredictedSpawnEntity is set to a valid entity reference, in which case the referenced entity is used instead as destination where to copy the received ghost snapshot.


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