// Use this for initialization void Start() { TestProtoClass test = new TestProtoClass(); test.dependenies = new List <string>() { "123", "asd", "zxc", "dfg" }; var bytes = ProtoEx.Serialize(test); var testFromProto = ProtoEx.DeSerialize <TestProtoClass>(bytes); Debug.Log(testFromProto.dependenies.ConverToString()); }
public void ReadProto <T>(byte[] bytes) { TestProtoClass test = ProtoEx.Read <TestProtoClass>(bytes); }