Unity NPM version of Google Protobuf! This repository applies the same license terms of the original version.
Original repo: protocolbuffers
You can find at Assets/Package/CHANGES.txt
This package will receive updates from time to time. To do this:
- Replace Google.Protobuf folder for the original Root > csharp > src > Google.Protobuf
- Replace CHANGES.txt for the original at Root.
- Replace Assets/Package/Protoc/{versions} for related OS versions (current MacOS 64, Windows 64 and Linux 64) from original repo.
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 ]!
The installed version of protoc is Windows 64 bits.
There are two modes of configuration:
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.
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.