资料

Creating Custom Modules

UE4插件介绍-b站视频

Module

参数

  • Type

    • Runtime: 会被导出,游戏运行就会加载
    • Editor: 只在编辑器模式加载,不会被导出
  • LoadingPhase: 什么时候加载 ModuleDescriptor.h中定义

    • PreLoadingScreen: 比较早
    • Default: 比较晚

Plugin

插件内包含多个Module

创建插件

空白

包含内容代码模板(单个Module定义,还可创建新的Module)

image

仅内容

因为不包含代码,所以在代码编辑器中存放资源内容

image

image

蓝图库

空白插件基础上,额外增加了蓝图库代码,可以扩展蓝图库供蓝图中调用

image

编辑器模式

注册了一个编辑器模式

image

编辑器栏按钮

image

编辑器栏独立窗口

image

第三方库