docs.unity3d.com
    Show / Hide Table of Contents

    Interface IGhostSerializer<T>

    Namespace: Unity.NetCode
    Syntax
    public interface IGhostSerializer<T>
        where T : struct, ISnapshotData<T>
    Type Parameters
    Name Description
    T

    Properties

    SnapshotSize

    Declaration
    int SnapshotSize { get; }
    Property Value
    Type Description
    System.Int32

    WantsPredictionDelta

    Declaration
    bool WantsPredictionDelta { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    BeginSerialize(ComponentSystemBase)

    Declaration
    void BeginSerialize(ComponentSystemBase system)
    Parameters
    Type Name Description
    ComponentSystemBase system

    CalculateImportance(ArchetypeChunk)

    Declaration
    int CalculateImportance(ArchetypeChunk chunk)
    Parameters
    Type Name Description
    ArchetypeChunk chunk
    Returns
    Type Description
    System.Int32

    CanSerialize(EntityArchetype)

    Declaration
    bool CanSerialize(EntityArchetype arch)
    Parameters
    Type Name Description
    EntityArchetype arch
    Returns
    Type Description
    System.Boolean

    CopyToSnapshot(ArchetypeChunk, Int32, UInt32, ref T, GhostSerializerState)

    Declaration
    void CopyToSnapshot(ArchetypeChunk chunk, int ent, uint tick, ref T snapshot, GhostSerializerState serializerState)
    Parameters
    Type Name Description
    ArchetypeChunk chunk
    System.Int32 ent
    System.UInt32 tick
    T snapshot
    GhostSerializerState serializerState
    Back to top
    Copyright © 2025 Unity Technologies
    • 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 02 April 2025