# In the Dcoker Container
$ go version
go version go1.18.2 linux/amd64
$ protoc --version
libprotoc 3.12.4
Unity 2021.3.3f1
In the realtime-grpc
dir ( workspace root dir) , run the following command:
$ protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative proto/world/user.proto proto/world/room.proto
- download
grpc-protoc_linux_x64-1.47.0-dev.tar.gz
in gRPC protoc Plugins from Artifacts for gRPC Build f15a2c1c-582b-4c51-acf2-ab6d711d2c59- may be curl is ok
- copy to docker container
cp -R path_to_downloads/Grpc.Tools .
- In the
realtime-grpc
dir ( workspace root dir) , run the following command:Room.cs,RoomGrpc.cs,User.cs are generatedprotoc --proto_path=. --csharp_out=proto/world --grpc_out=proto/world proto/world/user.proto proto/world/room.proto --plugin=protoc-gen-grpc=Grpc.Tools/tools/linux_x64/grpc_csharp_plugin
- download
grpc_unity_package.2.47.0-dev202204190851.zip
in C# from Artifacts for gRPC Build f15a2c1c-582b-4c51-acf2-ab6d711d2c59 - unzip grpc_unity_package.2.47.0-dev202204190851.zip and put on Assets dir in Unity Project
- In Unity Editor , File -> Build Settings -> Player Settings -> Other Settings -> set
.Net Framework
on Api Compatibility Level - Implement Client Code. ref client | gRPC