Programming‎ > ‎

Proto Buffers

We use proto buffers for our save data and network data.

Entity Position Example

So we send a message updating an entity's position. Here's an end to end of how it's done. First of all open Plugins.sln, in the ProtoBuf project, in Messages.proto you should find:

Take a look at Enums.proto to add new message ids.

Running generate.bat will generate some .cs files that are automatically put in the right place in the Unity project.

Our new message class is automatically created for us, so we can use it to send messages like this.



Comments