Library and tools for using Protobuf and GRPC with unity. Currently only tested with Windows, but runtimes are included for MacOS, Linux, Android and IOS.
- install .Net Core / .Net 5.0
- Use the Unity Package Manager ->
+
->add package from git UTL
->[email protected]:donnerlab1/UnityGRPC.git
(this might take some time as it needs to download the grpc runtimes) - If you want to look at the samples, either clone this repo and add it to your Project or go the the releases page and download the latest assetbundle
- Create protofiles
- Fill them with your (protobuf messages)[https://developers.google.com/protocol-buffers/docs/proto3] and (grpc services)[https://www.grpc.io/docs/languages/csharp/basics/]
- Unity Toolbar -> UnityGRPC -> Compile protos
- You are now able to use the generated client and server code