简体   繁体   English

如何在虚幻引擎 4 (ue4) 中创建和外包模块?

[英]How can I create and outsource a module in Unreal Engine 4 (ue4)?

I have implemented some code in Unreal Engine 4 that I would like to outsource so that it can be used in other projects.我在虚幻引擎 4 中实现了一些我想外包的代码,以便可以在其他项目中使用。 My goal would be to get a file that can be imported / incorporated into other projects.我的目标是获得一个可以导入/合并到其他项目中的文件。

The module includes folders, classes, behavior trees, and blackboards.该模块包括文件夹、类、行为树和黑板。 All of them programmed using blueprints.所有这些都使用蓝图进行编程。

It would be something similar to externalizing or importing a.jar library in the Java programming language.这类似于在 Java 编程语言中外部化或导入 a.jar 库。 But in Unreal Engine 4 using Blueprints or C ++.但在使用蓝图或 C ++ 的虚幻引擎 4 中。

Thank you very much in advance.非常感谢您提前。

If you have created a plugin in UE4 and put C++ code or blueprints into it, that's already a module which can be distributed between different UE4 project's by dragging and dropping the folder into 'Plugins' folder which should be located in the root directory of UnrealEngine project.如果你在 UE4 中创建了一个插件并将 C++ 代码或蓝图放入其中,这已经是一个模块,可以通过将文件夹拖放到 UnrealEngine 根目录下的“Plugins”文件夹中,在不同的 UE4 项目之间进行分发项目。 The only issue you may experience is forward compatibility as UE4 new releases very often change the existing APIs.您可能遇到的唯一问题是向前兼容性,因为 UE4 新版本经常更改现有 API。 Also note that: You can not reuse those modules in non UE related C++ project.另请注意:您不能在非 UE 相关的 C++ 项目中重用这些模块。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM