Unity Protobuf Editor by dayezhao - 1

Extensions

Google Protobuf C# & lua generator with Unity3d

Unity 5.6.0f3MIT LicenseUpdated 1 year agoCreated on July 3rd, 2017
Go to source

Unity.Protobuf.Editor

简体中文

Unity3d Google Protobuf C# & lua generator

Note

  • Lua generator not support Proto3
  • C# generator generate Proto3 with protoc.exe and Proto2 with ProtoGen.exe
        var sample = new Proto3Sample() { 
            Id = 1, 
            Email = "sample@hotmail.com", 
            Name = "Alvin" 
        };

        // Serialize to bytes
        var bytes = sample.ToByteArray();

        // Serialize to stream
        var stream = new MemoryStream();
        sample.WriteTo(stream);

        //Deserialize from bytes
        sample = Proto3Sample.Parser.ParseFrom(bytes);

        //Deserialize from json string
        sample = Proto3Sample.Parser.ParseJson("");

Show all projects by dayezhao