Skip to content
libprotobuf for Unreal Engine 4
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
build update compiler script Sep 7, 2018
libprotobuf Delete Sep 7, 2018
protobuf-source @ 48cb18e update protobuf source to v3.6.1 Sep 6, 2018
.gitmodules add submodule google protobuf(v3.1.0) Feb 3, 2017 Update Sep 7, 2018

libprotobuf for Unreal Engine 4

Link the google's protocol bufffers library as the third party in Unreal Engine 4.


  1. Import or copy the folder 'libprotobuf' into <your project>/Source/ThirdParty/libprotobuf.
  2. Add the libprotobuf as a module into <your project>.Build.cs
  • PrivateDependencyModuleNames.AddRange(new string[] { "CoreUObject", "Engine", "libprotobuf" });
  1. Generate two code files (header & source, ex: Message.pb.h & of the protocal by protoc for cpp. (Ref: Google's Protocol Buffers)
  2. Put them into the source directory (Private or Public) of your project.
  3. Add these line in message cpp file(
#ifdef _MSC_VER
#pragma warning(disable:4125)
  1. Regenerate the code file for Unreal Engine 4 by
    • python 'the header file'
    • ex: python Message.pb.h
    • You should get this information: Success to regenerate the code for UE4
  2. Include and use the header file(ex: Message.pb.h) in your .cpp file.
  3. That's all.

Build Library

  1. Windows: Run (Visual Studio 2017 and CMake is required)
  2. Linux: Run (clang and Unrea Engine Source Code is required)


You can’t perform that action at this time.