3 个仓库
Libraries that serialize Unity-specific structs like Vector3, Quaternion, and Color for game server-client communication.
Distinct from Unity Game Development Toolkits: Distinct from Unity Game Development Toolkits: focuses specifically on serialization of Unity types, not general game development toolkits.
Explore 3 awesome GitHub repositories matching web development · Unity Serialization Libraries. Refine with filters or upvote what's useful.
MessagePack-CSharp is a high-performance binary serializer for .NET that converts C# objects to and from the compact MessagePack format. It uses compile-time source generation to produce AOT-safe formatters and resolvers, eliminating runtime reflection and enabling ahead-of-time compilation scenarios. The serializer encodes object fields as integer indices instead of string keys, producing compact binary output with deterministic field ordering, and provides stack-allocated reader and writer structs for direct encoding and decoding of MessagePack primitives without heap allocations. The libra
Serializes Unity-specific structs like Vector3 and Quaternion using built-in resolvers for game communication.
MemoryPack 是一个用于 C# 和 Unity 的高性能二进制序列化库。它提供了一个零分配(Zero-allocation)数据流水线和模式演进框架,旨在最大限度地减少内存分配和编码开销。 该项目利用编译时源代码生成器来避免运行时反射,并实现了一种零编码二进制格式以实现最大吞吐量。它通过一种零分配方法脱颖而出,该方法重用对象实例以减少垃圾回收压力,并将非托管结构体的内存布局直接复制到二进制流中。 该库涵盖用于向后兼容的二进制模式版本控制,并支持针对大数据集的异步集合流式传输。它包括一个 TypeScript 类型生成器,用于在 C# 和 TypeScript 之间同步数据结构以进行跨语言数据交换。其他功能包括有效载荷压缩、自定义格式化程序实现和序列化回调。
Optimizes Unity game state persistence by using fast binary serialization for reduced load times.
MagicOnion 是一个用于 .NET 平台和 Unity 的远程过程调用(RPC)框架。它作为一个二进制 API 协议和实时通信引擎,使用共享接口在客户端和服务器之间提供类型安全的通信。 该框架通过其与提前(AOT)编译环境的兼容性脱颖而出,利用源生成器进行客户端代理和序列化,以支持包括使用 IL2CPP 的移动和主机平台。它为 Unity 提供了一个专门的中间件层,处理引擎特定的数据类型并确保运行时兼容性。 该项目涵盖了广泛的网络功能,包括双向数据流、一元请求-响应周期以及服务器到客户端的推送消息。它包括对通过 TLS 加密和 JWT 身份验证的内置安全支持,以及有状态的每客户端会话管理和基于拦截器的请求过滤。 诊断工具可用于监控通信状态、跟踪服务器性能指标,并将服务器端堆栈跟踪传播到客户端进行调试。
Provides a communication layer with AOT-compatible serialization for Unity native data types.