Code Monkey home page Code Monkey logo

ue4protobuf's Introduction

UE4Protobuf

在UE4里使用Google Protobuffer ver3.5.1

参考教程: 在UnrealEngine4中使用Google Protobuf

我已经编译整理好了关于windows下的需要的lib库和相关头文件。 直接把ThirdParty文件夹复制到虚幻4项目的Source目录下。 在[项目名称].Build.cs里加入
bEnableShadowVariableWarnings = false;
bEnableUndefinedIdentifierWarnings = false;
PrivateDependencyModuleNames.AddRange(new string[] { "protobuf" });
禁用警告和添加protobuf模块。

使用.uproject重新生成.sln文件,这一步会把protobuf模块加入到项目中。

使用protoc.exe生成的.h文件中加入以下代码。禁用警告。
#pragma warning(disable:4125)
#pragma warning(disable:4577)
#pragma warning(disable:4800)
#pragma warning(disable:4668)
#pragma warning(disable:4647)
#pragma warning(disable:4146)

由于protobuf和ue4两个独有的check宏冲突,在ue4里不要使用该宏。

之后 在项目文件里直接使用即可。

ue4protobuf's People

Contributors

sheyq avatar

Stargazers

lifengyi avatar

Watchers

James Cloos avatar Xavier Nico avatar

Forkers

jeveruberry

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.