Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it allow to only compile .proto file under specify folder? #3

Closed
Guxin233 opened this issue May 28, 2018 · 1 comment
Closed

Is it allow to only compile .proto file under specify folder? #3

Guxin233 opened this issue May 28, 2018 · 1 comment

Comments

@Guxin233
Copy link

When click Force Compilation, all .proto file under Unity project will auto create relatice C# file. Is it allow to only compile .proto file under specify folder? Because some .proto file under Google official protobuf folder also be executed (but I dont hope so...), and some of this proto file use protobuf2 syntax will occurred error.
1
1

@5argon
Copy link
Owner

5argon commented May 28, 2018

Oh, that would be the case. In my project I use Protobuf dll from NuGet so they won't get compiled.

Currently the tool will compiles everything inside your project because the use of asset importer. You could hack around it in CompileProtobufAssetPath function inside ProtobufUnityCompiler. Check the path there and return false should exempt that folder.

@5argon 5argon closed this as completed Jun 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants