新版本使用方法
哈喽,大家好,我叫人宅,这里为大家手把手演示SimpleProtobuf的使用方法。
这个插件目前作为引擎插件,直接放在引擎插件下即可:

添加图片注释,不超过 140 字(可选)
一 安装库
1.第一步先从插件内部找到如下的批处理,找到“-OutPutProtobufPath=”代码。

添加图片注释,不超过 140 字(可选)

添加图片注释,不超过 140 字(可选)

添加图片注释,不超过 140 字(可选)
如果以后希望用独立程序,那么这个路径就设置为独立程序的路径即可:

添加图片注释,不超过 140 字(可选)
第二步:build.cs下写代码
生成好后,编译项目代码一定会编译出错,这个时候来到build.cs下面,加入如下代码
ShadowVariableWarningLevel = WarningLevel.Off; bEnableUndefinedIdentifierWarnings = false; if(Target.Platform == UnrealTargetPlatform.Win64) { bEnableExceptions = true; } PublicDefinitions.Add(“_CRT_SECURE_NO_WARNINGS”);

添加图片注释,不超过 140 字(可选)
但是如果还是不行,说明你的目录不是Public或者私有的目录,那如何解决呢?

添加图片注释,不超过 140 字(可选)

添加图片注释,不超过 140 字(可选)
如何使用呢?

添加图片注释,不超过 140 字(可选)

添加图片注释,不超过 140 字(可选)

添加图片注释,不超过 140 字(可选)

添加图片注释,不超过 140 字(可选)

添加图片注释,不超过 140 字(可选)

添加图片注释,不超过 140 字(可选)
如果定义Prot的结构建议写在 CPPScript里面

添加图片注释,不超过 140 字(可选)
协议生成后重新生成项目,报下面的错误是什么原因啊
LNK2019 无法解析的外部符号 “public: virtual __cdecl google::protobuf::Closure::~Closure(void)” (??1Closure@protobuf@google@@UEAA@XZ),函数 “public: virtual void * __cdecl google::protobuf::Closure::`scalar deleting destructor'(unsigned int)” (??_GClosure@protobuf@google@@UEAAPEAXI@Z) 中引用了该符号
截图发我
这个情况很可能是没有链接上.h和.cpp没链接上
插件已经更新了,可以商用
准备资料可以私发一份吗? 我想对着教学视频复现一下
是什么准备资料,你的意思是插件的protobuf资源。稍等一下我会把它放出来。
资源地址下载 :https://ue4plugins.oss-cn-beijing.aliyuncs.com/ThirdParty/Protobuf/Protobuf.zip
哦哦,问题已经解决了,感谢
客气
这个能支持linux端吗
支持
CompilerResultsLog: ld.lld: error: undefined symbol: PlayerStateHello::FStructObject23::FStructObject23()
CompilerResultsLog: >>> referenced by LoginSubsystem.cpp:21 (/home/ljf/Documents/UnrealProjects/ue5_heroworld/heroworld/Source/heroworld/Level/Login/Systems/LoginSubsystem.cpp:21)
CompilerResultsLog: >>> /home/ljf/Documents/UnrealProjects/ue5_heroworld/heroworld/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/heroworld/LoginSubsystem.cpp.o:(ULoginSubsystem::LoginBtn(FString, FString))
CompilerResultsLog: ld.lld: error: undefined symbol: PlayerStateHello::FStructObject23::~FStructObject23()
CompilerResultsLog: >>> referenced by LoginSubsystem.cpp:37 (/home/ljf/Documents/UnrealProjects/ue5_heroworld/heroworld/Source/heroworld/Level/Login/Systems/LoginSubsystem.cpp:37)
CompilerResultsLog: >>> /home/ljf/Documents/UnrealProjects/ue5_heroworld/heroworld/Intermediate/Build/Linux/B4D820EA/UnrealEditor/Development/heroworld/LoginSubsystem.cpp.o:(ULoginSubsystem::LoginBtn(FString, FString))
CompilerResultsLog: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
LogMainFrame: MainFrame: Module compiling took 14.062 seconds
Warning: HotReload failed, recompile failed
编译项目报错了,linux系统
SimpleProtobuf UE5.00
最近正在计划升级
已经升级
UE4能用吗
可以用
ue5的插件没法用啊,
现在可以了
protobuf里面的bin怎么没有啊
按照新版本的方式来
这个插件有使用流程嘛?为什么我的没反应呢?
已经更新 文档也更新了