Interface IGhostSerializer<T> | Unity NetCode | 0.2.0-preview.5
docs.unity.cn
    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
    Int32

    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
    Int32

    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
    Int32 ent
    UInt32 tick
    T snapshot
    GhostSerializerState serializerState
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX