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)
全栈程序员-站长的头像全栈程序员-站长


相关推荐

  • 给Ubuntu18.04(18.10)安装mac os主题

    给Ubuntu18.04(18.10)安装mac os主题2020-04-29Ubuntu20.04的Gnome版本与18.04有些许差别,完全按照本文效果并不好,20.04的美化博主正在连夜赶制中,尚未完成,敬请期待,如果实在等不及了,就看下面链接的

    2022年7月3日
    31
  • idea mybatis跳转插件_idea添加本地jar包到maven

    idea mybatis跳转插件_idea添加本地jar包到maven我相信目前在绝大部分公司里,主要使用的框架是S(spring)S(springMVC)M(mybatis),其中mybatis总体架构是编写mapper接口,框架扫描其对应的mapper.xml文件,由于xml里面编写大量的sql语句,所以在平时调试中需要对其进行调试,但是xml文件并不能像java文件一样,能快速进行跳转,对查找对应xml文件带来巨大的不便。网友基础idea强大的插件系…

    2022年10月6日
    0
  • Django(34)Django操作session(超详细)[通俗易懂]

    Django(34)Django操作session(超详细)[通俗易懂]前言session:session和cookie的作用有点类似,都是为了存储用户相关的信息。不同的是,cookie是存储在本地浏览器,session是一个思路、一个概念、一个服务器存储授权信息的解

    2022年8月7日
    6
  • Cas认证原理

    Cas认证原理参考文章:https://blog.csdn.net/duanmulanghuan/article/details/81203873介绍:1.cas相当于一个web应用,应配置在一台电脑上,作为cas认证服务器。首先有三个URL:登录URL:cas的登录认证url(假设为:https://cas/login)验证URL:cas的验证ticket(票据)url登出URL:cas的登出u…

    2022年6月28日
    27
  • 电商接口测试用例_连连电商跨境

    电商接口测试用例_连连电商跨境按照两种模式进行划分总结:1.按照测试类型2.按照电子商务网站的系统架构1.按照测试类型来划分1.兼容性1.1主要是在浏览器兼容(360浏览器IE6IE8浏览器)12.操作系统,主要体现在操作系统兼容(xpwin2003win2007)2.UI测试2.1检查连接是否正确2.2是否有文字错误信息2.2产品价格是否有显示错误。3.用户体验测试UE3.1首页产品的展示与分类3.2搜索结果页,搜索…

    2022年9月28日
    0
  • cbow和skipgram适用于什么场景?_gram矩阵

    cbow和skipgram适用于什么场景?_gram矩阵在cbow方法中,是用周围词预测中心词,从而利用中心词的预测结果情况,使用GradientDesent方法,不断的去调整周围词的向量。当训练完成之后,每个词都会作为中心词,把周围词的词向量进行了调整,这样也就获得了整个文本里面所有词的词向量。要注意的是,cbow的对周围词的调整是统一的:求出的gradient的值会同样的作用到每个周围词的词向量当中去。可以看到,cbow预测行为的次数跟整个文本的…

    2022年9月6日
    2

发表回复

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

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