grpc2 gRPC on Unity 3D (C# proto, server, client Example) gRPC 서비스는 다양한 형식의 메서드가 있다 단방향 서버 스트리밍 클라이언트 스트리밍 양방향 스트리밍 다양한 형식별 proto파일 rpc 작성법 syntax = "proto3"; service ExampleService { // Unary rpc UnaryCall (ExampleRequest) returns (ExampleResponse); // Server streaming rpc StreamingFromServer (ExampleRequest) returns (stream ExampleResponse); // Client streaming rpc StreamingFromClient (stream ExampleRequest) returns (ExampleResponse); // Bi-direction.. 2021. 6. 15. gRPC on Unity 3D (Test Example) 아주 간단한 Unity 3D에서 gRPC 통신 테스트 1. gRPC 다운로드 1-1. 다운로드 사이트에 접속. (https://packages.grpc.io/) 최신 버전의 Build ID를 클릭 . 1-2. gRPC protoc Plugins에서 OS에 맞는 파일 다운로드. C#에서 grpc_unity_package...~...zip 다운로드. 1-3. 압축 해제한 grpc-protoc 파일은 .proto 파일을 컴파일할 때 계속 사용하게 되므로 적당한 곳에 압축을 풀어 보관. grpc_unity_package 파일은 압축 해제 후 Plugins 폴더 생성 그대로 유니티 프로젝트 Assets 폴더 하위 이동. 2. .proto 작성 및 컴파일 2-1. proto 파일 작성 사용하는 IDE, Editor.. 2021. 6. 14. 이전 1 다음