docs.unity.cn
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.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.NetCode
    Assembly: solution.dll
    Syntax
    [BurstCompile]
    public static class ComponentSerializationHelper<TComponentType, TSnapshot, TSerializer> where TComponentType : unmanaged where TSnapshot : unmanaged where TSerializer : unmanaged, IGhostSerializer<TComponentType, TSnapshot>
    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<TComponent, TSnapshot> interface.

    Methods

    Name Description
    SetupFunctionPointers(ref State, ref SystemState)

    Setup all the GhostComponentSerializer.State data and function pointers.

    In This Article
    Back to top
    Copyright © 2023 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)