GongFaxin / protobuf_for_unity

google's protobuf 3 for unity3d(5.x) game engine
137 stars 35 forks source link

LITE_RUNTIME #4

Open fvsfvs123 opened 7 years ago

fvsfvs123 commented 7 years ago

pb3.3.0自带的protoc生成的cs文件是带有反射功能的,加了LITE_RUNTIME也没有用,请问有好的解决方法吗。

GongFaxin commented 7 years ago

optimize_for (file option): Can be set to SPEED, CODE_SIZE, or LITE_RUNTIME. This affects the C++ and Java code generators (and possibly third-party generators) in the following ways:......

LITE_RUNTIME 针对的是 C++ 和 Java

fvsfvs123 commented 7 years ago

嗯,官方是只针对了C++和Java,但是生成的CS文件的反射功能使用unity的l2cpp打成的包在runtime时会报错。