Interface IGhostSerializer<T> | Unity NetCode | 0.2.0-preview.5
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
    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 © 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