libprotobuf for Unreal Engine 4
Link the google's protocol bufffers
library as the third party in Unreal Engine 4.
<your project or plugin>/Source/ThirdParty/libprotobuf
.<your project>.Build.cs
PrivateDependencyModuleNames.AddRange(new string[] { "CoreUObject", "Engine", "libprotobuf" });
protoc
for cpp
. (Ref: Google's Protocol Buffers)Private
or Public
) of your project.regenerateforue4.py
.
python regenerateforue4.py 'the source file'
python regenerateforue4.py Message.pb.cc
Success to regenerate the code for UE4
#include "AllowWindowsPlatformTypes.h"
//< before include the header file#include "your code header file"
//< ex: #include "Message.pb.h"
#include "HideWindowsPlatformTypes.h"
//< after include the header file.cpp
file.Use The MIT License.
Copyright (c) 2016, Code 4 Game.