irunmyway / google-protobuf-unity

Unity NPM version of Google Protobuf! This repository applies the same license terms as the original version.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Google Protobuf C# Library for Unity

Unity NPM version of Google Protobuf! This repository applies the same license terms of the original version.

Original repo: protocolbuffers

Current Version

You can find at Assets/Package/CHANGES.txt

Updating this package:

This package will receive updates from time to time. To do this:

  1. Replace Google.Protobuf folder for the original Root > csharp > src > Google.Protobuf
  2. Replace CHANGES.txt for the original at Root.
  3. Replace Assets/Package/Protoc/{versions} for related OS versions (current MacOS 64, Windows 64 and Linux 64) from original repo.

How to install

At package.json, add these line of code:

"com.gameworkstore.googleprotobufunity": "git://github.com/GameWorkstore/google-protobuf-unity"

And wait for unity to download and compile the package.

for update package for a newer version, install UpmGitExtension and update on [ Window > Package Manager ]!

https://github.com/mob-sakai/UpmGitExtension

Preinstalled Protoc

The installed version of protoc is Windows 64 bits.

Configuration

There are two modes of configuration:

Global

You must configure at least a ProtobufConfig file anywhere in the project folder to allow the ProtobufCompiler to compile .proto files. This is the preferred one for simple projects.

Local

ProtobufCompiler also accepts multiple ProtobufConfig. Put one ProtobufConfig inside each folder containing your .proto files to allow it find them and compile on each custom path properly. This method is used for a project with more complex configurations or sub-projects inside Assets folder.

About

Unity NPM version of Google Protobuf! This repository applies the same license terms as the original version.

License:Other


Languages

Language:C# 100.0%