UE4->Plugin 认识UE4插件 1「建议收藏」

UE4->Plugin 认识UE4插件 1「建议收藏」本文带大家认识UE4的插件,PluginUE4Engine中插件代码占很大一部分,可参考下图,里面的Editor,Developer,Runtime,Slate举例都是大家比较熟悉的几个1>看下图的中Json,其实就是我们的.plugin文件{ “FileVersion”:3, //文件版本 “Version”:1, //Plugin版本 “VersionName”:”1.0″, //版本名称 “FriendlyName”:”Taskp”, //插件名称 “Des

大家好,又见面了,我是你们的朋友全栈君。如果您正在找激活码,请点击查看最新教程,关注关注公众号 “全栈程序员社区” 获取激活教程,可能之前旧版本教程已经失效.最新Idea2022.1教程亲测有效,一键激活。

Jetbrains全系列IDE稳定放心使用

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

本文带大家认识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 targets
		EditorAndProgram,	//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
	};
版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请联系我们举报,一经查实,本站将立刻删除。

发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/186041.html原文链接:https://javaforall.net

(0)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • cde网站_zaqxswcde

    cde网站_zaqxswcde给定一个 m x n 整数矩阵 matrix ,找出其中 最长递增路径 的长度。对于每个单元格,你可以往上,下,左,右四个方向移动。 你 不能 在 对角线 方向上移动或移动到 边界外(即不允许环绕)。示例 1:输入:matrix = [[9,9,4],[6,6,8],[2,1,1]]输出:4 解释:最长递增路径为 [1, 2, 6, 9]。示例 2:输入:matrix = [[3,4,5],[3,2,6],[2,2,1]]输出:4 解释:最长递增路径是 [3, 4, 5, 6]。注意

    2022年8月9日
    2
  • TLSF算法分析「建议收藏」

    TLSF算法分析「建议收藏」注:本文的大部分内容摘录自论文《TLSF:aNewDynamicMemoryAllocatorforReal-TimeSystems》,可以通过“科学上网”访问如下链接阅读原文:http://www.gii.upv.es/tlsf/files/ecrts04_tlsf.pdf。什么是TLSFTLSF是TwoLevelSegregatedFitmemoryal

    2022年6月30日
    53
  • android 中国通信乱码问题

    android 中国通信乱码问题

    2022年1月1日
    50
  • mysql8分区表_MySQL 分区表[通俗易懂]

    mysql8分区表_MySQL 分区表[通俗易懂]MySQL分区就是将一个表分解为多个更小的表。从逻辑上讲,只有一个表或一个索引,但在物理上这个表或者索引可能由多个物理分区组成。每个分区在物理上都是独立的。MySQL数据库分区类型:Range分区:行数据基于属于一个给定连续区间的列值放入分区。List分区:和Range分区类似,只是List分区面向的是离散的值。Hash分区:根据用户自定义的表达式的返回值来进行分区,返回值不能为负数。Key分区:…

    2022年6月11日
    44
  • JSON字符串转换为Map

    JSON字符串转换为Map转自:http://blog.csdn.net/zknxx/article/details/52281220本文是利用阿里巴巴封装的FastJSON来转换json字符串的。例子如下:packagecom.zkn.newlearn.json;importcom.alibaba.fastjson.JSON;importcom.alibaba.fastjson.JSON…

    2022年6月21日
    24
  • jar war ear_什么时候用jar包与war包

    jar war ear_什么时候用jar包与war包war是web的一个模块,其中需要包括WEB-INF,可以直接运行。而jar一般只是包括一些class文件,在声明了Main_class之后是可以用java命令运行的。它们都是压缩的包,拿Tomcat来说,将war文件包放置它的\webapps\目录下,启动Tomcat,这个包可以自动进行解压,也就是你的web目录,相当于发布。  war包:一般是做好一个web应用后,通常是网站,打成包部署到容…

    2022年9月27日
    2

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

关注全栈程序员社区公众号