UE4->Plugin 认识UE4插件 1

2024-06-16 02:48
文章标签 ue4 插件 plugin 认识

本文主要是介绍UE4->Plugin 认识UE4插件 1,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

原创文章,转载请注明出处。

本文带大家认识UE4的插件, Plugin

UE4 Engine中插件代码占很大一部分,可参考下图,里面的Editor, Developer, Runtime, Slate举例都是大家比较熟悉的几个
在这里插入图片描述
1>看下图的中Json,其实就是我们的.plugin文件

{"FileVersion": 3,	//文件版本"Version": 1,		//Plugin版本"VersionName": "1.0",	//版本名称"FriendlyName": "Taskp",	//插件名称"Description": "tianhuajian created",	//插件描述"Category": "Other",			//插件所属组"CreatedBy": "tianhuajian",		//插件创建者"CreatedByURL": "",				//创建者网站"DocsURL": "",					//插件的文档URL"MarketplaceURL": "",			//虚幻商城URL"SupportURL": "",				//技术支持URL"CanContainContent": true,		//是否可包含Content"IsBetaVersion": false,			//是否是测试版"IsExperimentalVersion": false,	//是否是实验性的版本, UE4插件中会有显示"Installed": false,				//是否安装的"Modules": [					//可包含多个模块{"Name": "TestPlg",		//重要:模块名称"Type": "Runtime",		//重要:模块的类型->下面再介绍"LoadingPhase": "Default"		//重要:加载阶段->下面再介绍}]
}

2>Modules->Type(类型)介绍
代码中搜索 EHostType, 转到定义, ModuleDescriptor.h,对应上面Type 的枚举其实就在这个文件中。在这里插入图片描述

/*** Environment that can load a module.*/
namespace EHostType
{enum Type{// Loads on all targets, except programs.Runtime,	//Runtime模式下会去加载// Loads on all targets, except programs and the editor running commandlets.RuntimeNoCommandlet,	//Runtime模式, 不包含命令// Loads on all targets, including supported programs.RuntimeAndProgram,		//Runtime模式, 小程序// Loads only in cooked games.CookedOnly,		//和Cook资源相关// Only loads in uncooked games.UncookedOnly, //只在没有cook过的程序中加载// Deprecated due to ambiguities. Only loads in editor and program targets, but loads in any editor mode (eg. -game, -server).// Use UncookedOnly for the same behavior (eg. for editor blueprint nodes needed in uncooked games), or DeveloperTool for modules// that can also be loaded in cooked games but should not be shipped (eg. debugging utilities).Developer,	//开发模式下加载,兼容老版本留下来的枚举// Loads on any targets where bBuildDeveloperTools is enabled.DeveloperTool,	//开发模式下加载 新的枚举// Loads only when the editor is starting up.Editor,		//Editor模块// Loads only when the editor is starting up, but not in commandlet mode.EditorNoCommandlet,	//Editor非命令行加载// Loads only on editor and program targetsEditorAndProgram,	//Editor小程序// Only loads on program targets.Program,	//独立程序// Loads on all targets except dedicated clients.ServerOnly,		//服务端模块// Loads on all targets except dedicated servers.ClientOnly,		//客户端模块// Loads in editor and client but not in commandlets.ClientOnlyNoCommandlet,		//客户端没有命令行的模块//~ NOTE: If you add a new value, make sure to update the ToString() method below!Max	//如果新加枚举的话 别忘了把这个Namespace中的tostring方法完善一下};

3>Modules->LoadingPhase(加载阶段)介绍
代码中搜索 ELoadingPhase, 转到定义, ModuleDescriptor.h,对应上面LoadingPhase 的枚举其实就在这个文件中。

namespace ELoadingPhase
{enum Type{/** As soon as possible - in other words, uplugin files are loadable from a pak file (as well as right after PlatformFile is set up in case pak files aren't used) Used for plugins needed to read files (compression formats, etc) */EarliestPossible,/** Loaded before the engine is fully initialized, immediately after the config system has been initialized.  Necessary only for very low-level hooks */PostConfigInit,/** The first screen to be rendered after system splash screen */PostSplashScreen,/** Loaded before coreUObject for setting up manual loading screens, used for our chunk patching system */PreEarlyLoadingScreen,/** Loaded before the engine is fully initialized for modules that need to hook into the loading screen before it triggers */PreLoadingScreen,/** Right before the default phase */PreDefault,/** Loaded at the default loading point during startup (during engine init, after game modules are loaded.) */Default,/** Right after the default phase */PostDefault,/** After the engine has been initialized */PostEngineInit,/** Do not automatically load this module */None,// NOTE: If you add a new value, make sure to update the ToString() method below!Max};

这篇关于UE4->Plugin 认识UE4插件 1的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/1065292

相关文章

WordPress网创自动采集并发布插件

网创教程:WordPress插件网创自动采集并发布 阅读更新:随机添加文章的阅读数量,购买数量,喜欢数量。 使用插件注意事项 如果遇到404错误,请先检查并调整网站的伪静态设置,这是最常见的问题。需要定制化服务,请随时联系我。 本次更新内容 我们进行了多项更新和优化,主要包括: 界面设置:用户现在可以更便捷地设置文章分类和发布金额。代码优化:改进了采集和发布代码,提高了插件的稳定

vscode-创建vue3项目-修改暗黑主题-常见错误-element插件标签-用法涉及问题

文章目录 1.vscode创建运行编译vue3项目2.添加项目资源3.添加element-plus元素4.修改为暗黑主题4.1.在main.js主文件中引入暗黑样式4.2.添加自定义样式文件4.3.html页面html标签添加样式 5.常见错误5.1.未使用变量5.2.关闭typescript检查5.3.调试器支持5.4.允许未到达代码和未定义代码 6.element常用标签6.1.下拉列表

认识LangChain

介绍 LangChain 是一个用于开发由大型语言模型(LLM)支持的应用程序的框架。LangChain使得构建LLM应用更简单,大致三个阶段: 开发阶段 Conceptual guide | 🦜️🔗 LangChainProviders | 🦜️🔗 LangChainTemplates | 🦜️🔗 LangChain使用LangChain的开源构建块和组件构建您的应用程序。使

ROS2从入门到精通4-4:局部控制插件开发案例(以PID算法为例)

目录 0 专栏介绍1 控制插件编写模板1.1 构造控制插件类1.2 注册并导出插件1.3 编译与使用插件 2 基于PID的路径跟踪原理3 控制插件开发案例(PID算法)常见问题 0 专栏介绍 本专栏旨在通过对ROS2的系统学习,掌握ROS2底层基本分布式原理,并具有机器人建模和应用ROS2进行实际项目的开发和调试的工程能力。 🚀详情:《ROS2从入门到精通》 1 控制插

图形编辑器基于Paper.js教程03:认识Paper.js中的所有类

先来认一下Paper的资源对象,小弟有哪些,有个整体的认识。认个脸。 在Paper.js的 官方文档中类大致有如下这些: 基类: ProjectViewItemPointToolSizeSegmentRectangleCurveCurveLocationMatrixColorStyleTweenToolEventGradientGradientStopEvent 二级或三级类 继承Ite

uniapp 使用uview 插件

看创建项目版本vue2 、 vue3 Button 按钮 | uView 2.0 - 全面兼容 nvue 的 uni-app 生态框架 - uni-app UI 框架 1.  npm install uview-ui@2.0.36 2. // main.js,注意要在use方法之后执行import uView from 'uview-ui'Vue.use(uView)// 如此

MyBatis系列之分页插件及问题

概述 无论是C端产品页面,还是后台系统页面,不可能一次性将全部数据加载出来。后台系统一般都是PC端登录,用Table组件(如Ant Design Table)渲染展示数据,可点击列表的下一页(或指定某一页)查看数据。C端产品如App,在下滑时可查看更多数据,看起来像是一次性加载数据,实际上也是分批请求后台系统获取数据。而这,就是分页功能。 如果没有使用Hibernate或MyBatis这样的O

spring-boot-maven-plugin多模块install问题

一、问题描述:   项目分多个模块,open-eureka注册中心、open-provider服务提供者、open-common公共部分,provider依赖common。父pom使用spring-boot-maver-plugin插件,项目直接运行Main主类没问题,但是install报common中的类找不到符号. 二、查找问题:   spring-boot-maven-plugin 打

Android IDE Plugin ViewInject

前言 目前为止,Android使用的插件的已经很多了,但是自己在这块确实空白的,之前写过了ViewInject博客了,在优化findViewById之后,考虑到不需要手写问题的情况下,采用插件辅助来开发,网上目前已经有了ButterKnife的辅助的插件,为自己开发ViewInject插件,个人建议不要光看我写的一部分我用到的方法,需要你自己看IDE Plugin API刚好这段时间有空闲时间。

google-自我插件

1. Bitwarden 密码管理器 2. React Developer Tools 3. Vue.js devtools 4. YouTube™ 双字幕 5. 沉浸式翻译 - 网页翻译插件 6. FeHelper(前端助手) 7. IDM Integration Module 8. Redux DevTools - Next 9. 待续…