https://github.com/hiram3512/higrpc_unity
This is a demo display how to ues gRPC in unity editor
https://github.com/hiram3512/higrpc_unity
grpc unity unity3d
Last synced: about 1 month ago
JSON representation
This is a demo display how to ues gRPC in unity editor
- Host: GitHub
- URL: https://github.com/hiram3512/higrpc_unity
- Owner: hiram3512
- Created: 2018-05-09T06:33:01.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-09T10:01:49.000Z (about 7 years ago)
- Last Synced: 2025-04-19T19:04:52.020Z (2 months ago)
- Topics: grpc, unity, unity3d
- Language: C#
- Homepage:
- Size: 4.69 MB
- Stars: 12
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HigRPC_unity
This project is to display how to use google's gRPC with unity.
#### How to use in unity
- Set scripting runtime version to .net 4.6
[](https://raw.githubusercontent.com/hiramtan/HigRPC_unity/master/others/20180508160421.png)- Import gRPC dll to unity project
- Google.Protobuf.dll
- Grpc.Core.dll
- grpc_csharp_ext.x64.dll
- System.Interactive.Async.dll
- Create logic to test if run correct.Run untiy and will print "Greeting: Hello you"
[](https://raw.githubusercontent.com/hiramtan/HigRPC_unity/master/others/20180509172522.png)
#### Extention
Add user's protocol and generate code
``` cmd
Grpc.Tools.1.11.x\tools\windows_x86\protoc.exe -I../../protos --csharp_out Greeter --grpc_out Greeter ../../protos/helloworld.proto --plugin=protoc-gen-grpc=packages/Grpc.Tools.1.11.x/tools/windows_x86/grpc_csharp_plugin.exe
```
-----
**Note: Haven't test on mobile platform**Time:2018.05.08
Google gRPC's source code also alert **unity support is experimental and work-in-progress.Don't expact it to work**
[](https://raw.githubusercontent.com/hiramtan/HigRPC_unity/master/others/20180509171233.png)