概要
using MessagePack; using UnityEngine; public class Example : MonoBehaviour { private void Awake() { var str = "ピカチュウ"; var lz4Options = MessagePackSerializerOptions.Standard.WithCompression( MessagePackCompression.Lz4BlockArray ); var serialized = MessagePackSerializer.Serialize( str, lz4Options ); var deserialized = MessagePackSerializer.Deserialize<string>( serialized, lz4Options ); print( deserialized ); // ピカチュウ } }