docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ComponentSerializationHelper<TComponentType, TSnapshot, TSerializer>

    Helper class used by code-gen to setup the serialisation function pointers.

    Inheritance
    object
    ComponentSerializationHelper<TComponentType, TSnapshot, TSerializer>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.NetCode
    Assembly: Unity.NetCode.dll
    Syntax
    [BurstCompile]
    public static class ComponentSerializationHelper<TComponentType, TSnapshot, TSerializer> where TComponentType : unmanaged where TSnapshot : unmanaged where TSerializer : unmanaged, IGhostSerializer
    Type Parameters
    Name Description
    TComponentType

    The unmanaged buffer the helper serialise

    TSnapshot

    The snaphost data struct that contains the IBufferElementData data.

    TSerializer

    A concrete type that implement the IGhostSerializer interface.

    Methods

    SetupFunctionPointers(ref State, ref SystemState)

    Setup all the GhostComponentSerializer.State data and function pointers.

    Declaration
    public static bool SetupFunctionPointers(ref GhostComponentSerializer.State state, ref SystemState systemState)
    Parameters
    Type Name Description
    GhostComponentSerializer.State state
    SystemState systemState
    Returns
    Type Description
    bool

    if the /> has been initialised.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)