A method for implementing UE4 support Excel tables, according to the rules of UE4, configuration module, put it into the path of making, become the third party function expansion (Third Party), by Visual Studio compiled Dll files, UE4 through the Dll interface, the realization of Excel file manipulation, editing, using the export Excel table and the function of. The purpose of the invention is that the Excel table is used as a database, and the characteristics of the Excel table are easy to use, so as to facilitate the planning, etc.. Do not need to use a plain text file in UE4.Csv this is not friendly, do not need to use SQL server, SQLite, Oracle etc. these conventional databases, a Excel table is enough.
【技术实现步骤摘要】
本专利技术涉及虚幻4引擎(UE4),涉及Excel表,尤指一种UE4支持Excel表的实现方法。
技术介绍
现有技术的虚幻4引擎(UE4)不支持Excel表,这是其缺点。
技术实现思路
针对现有技术的缺点,本专利技术的目的在于提供一种UE4支持Excel表的实现方法。本专利技术解决其技术问题所采用的技术方案是:提供一种UE4支持Excel表的实现方法,其特征在于包括如下步骤:(1)使用C++建立与Excel表的连接,得到Excel表在内存中的数据;(2)取出整个Excel表的内存数据:利用C++对Excel表的接口,取出Excel表在电脑内存中的数据,并保存在缓冲区中;(3)解析Excel每一个单元格的数据:根据单元格的类型,解析缓冲区中Excel表每个单元格的数据;(4)封装对每一个单元格操作的API:封装对Excel表行、列、单元格的操作的API;(5)把Orange_ExcelDll模块放到UE4目录的Engine\\Source\\ThirdParty;(6)在UE4项目的Build.cs文件中指明加入该模块:PublicDependencyModuleNames.AddRange(new string[]{\Core\,\CoreUObject\,\Engine\,\InputCore\,\Orange5s_ExcelDll\
【技术保护点】
一种UE4支持Excel表的实现方法,其特征在于包括如下步骤:(1)使用C++建立与Excel表的连接,得到Excel表在内存中的数据;(2)取出整个Excel表的内存数据:利用C++对Excel表的接口,取出Excel表在电脑内存中的数据,并保存在缓冲区中;(3)解析Excel每一个单元格的数据:根据单元格的类型,解析缓冲区中Excel表每个单元格的数据;(4)封装对每一个单元格操作的API:封装对Excel表行、列、单元格的操作的API;(5)把Orange_ExcelDll模块放到UE4目录的Engine\Source\ThirdParty;(6)在UE4项目的Build.cs文件中指明加入该模块:PublicDependencyModuleNames.AddRange(new string[]{Core,CoreUObject,Engine,InputCore,Orange5s_ExcelDll}),并加入该模块的头文件#includeThirdParty/Orange5s_ExcelDll/include/Orange5s_ExcelDll/Ora nge5s_ExcelDl ...
【技术特征摘要】
1.一种UE4支持Excel表的实现方法,其特征在于包括如下步骤:(1)使用C++建立与Excel表的连接,得到Excel表在内存中的数据;(2)取出整个Excel表的内存数据:利用C++对Excel表的接口,取出Excel表在电脑内存中的数据,并保存在缓冲区中;(3)解析Excel每一个单元格的数据:根据单元格的类型,解析缓冲区中Excel表每个单元格的数据;(4)封装对每一个单元格操作的API:封装对Excel表...
【专利技术属性】
技术研发人员:左曾旭衡,
申请(专利权)人:深圳前海小橙网科技有限公司,
类型:发明
国别省市:广东;44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。