当前位置:网站首页>Add console programs in UE
Add console programs in UE
2022-06-26 02:53:00 【JK Chen】
technological process
The example is named XmlToProto( Replace yourself )
stay
Project directory /Source/ProgramsI'm gonna go ahead and create a new folder XmlToProto
Internal new folder Source, as well as 5 File , The contents of the document are shown at the bottom
cmd function UBT
..\..\..\..\Engine\Binaries\DotNET\UnrealBuildTool.exe -ProjectFiles XXX\Source\Programs\XmlToProtoWill refresh .sln Project documents , Then reopen VS You can see the project

Modules can be referenced just like normal projects 、 plug-in unit (PublicDependencyModuleNames)
Write the main process to XmlToProtoMainWindows.cpp Internal main In function (RequestEngineExit Before , And this function cannot skip )
The newly created code files are put into Source Inside , It is not recommended to divide Private and Public
The contents of the document
XmlToProto.Build.cs
using UnrealBuildTool; using System.IO; using System; public class XmlToProto : ModuleRules { public XmlToProto(ReadOnlyTargetRules Target) : base(Target) { PublicDependencyModuleNames.AddRange( new string[] { "Core", } ); PublicIncludePathModuleNames.AddRange( new string[] { "Launch", "CoreUObject", "Projects", "Json", "ApplicationCore", } ); PublicIncludePaths.Add(ModuleDirectory); bEnableExceptions = true; bUseUnity = false; } }XmlToProto.Target.cs
using UnrealBuildTool; using System.Collections.Generic; public class XmlToProtoTarget : TargetRules { public XmlToProtoTarget(TargetInfo Target) : base(Target) { Type = TargetType.Program; LinkType = TargetLinkType.Monolithic; DefaultBuildSettings = BuildSettingsVersion.V2; LaunchModuleName = "XmlToProto"; ExtraModuleNames.Add("EditorStyle"); // VS Classification within SolutionDirectory = "GameTools"; bBuildDeveloperTools = false; // SlateViewer doesn't ever compile with the engine linked in bCompileAgainstEngine = false; // We need CoreUObject compiled in as the source code access module requires it bCompileAgainstCoreUObject = true; // SlateViewer.exe has no exports, so no need to verify that a .lib and .exp file was emitted by // the linker. bHasExports = false; // Make sure to get all code in SlateEditorStyle compiled in bBuildDeveloperTools = true; // UnrealPak is a console application, not a Windows app (sets entry point to main(), instead of WinMain()) bIsBuildingConsoleApplication = true; } }XmlToProtoApp.cpp
#include "XmlToProtoApp.h" #include "RequiredProgramMainCPPInclude.h" IMPLEMENT_APPLICATION(XmlToProto, "XmlToProto");XmlToProtoApp.h
#pragma onceXmlToProtoMainWindows.cpp
#include "CoreMinimal.h" int main(int argc, char* argv[]) { RequestEngineExit("Exit normally"); return 0; }
边栏推荐
- Redis Lua sandbox bypass command execution (cve-2022-0543)
- How to check and cancel subscription auto renewal on iPhone or iPad
- PyQt theme
- The difference between like,%, - in database query SQL
- Possible values for @supply in kotlin
- Is it safe to trade stocks with a compass? How does the compass trade stocks? Do you need to open an account
- How to adjust face input size
- What is flush software? Is online account opening safe?
- [机器翻译]—BLEU值的计算
- 如何提词条
猜你喜欢

MySQL doit maîtriser 4 langues!

Dynamic analysis and calculation of expression, flee is really sweet to use

How do I take a screenshot of the iPad? 7 ways to take quick screenshots of iPad

2021-08-04

OpenAPI 3.0 specification - Food Guide

Gd32 ADC acquisition voltage

Camtasia 2022 new ultra clear recording computer video

Arthas(阿尔萨斯) 能为你做什么?

ORB-SLAM3论文概述

Oracle连接问题以及解决方案
随机推荐
Binary search
Multi surveyor Gongshu campus Xiao sir_ Page error in Jenkins
R 语言马尔可夫链蒙特卡洛:实用介绍
如何在 ggplot2 中删除网格线(附示例)
【系统架构】-如何评估软件架构
How to solve the problem that the iPhone 13 lock screen cannot receive the wechat notification prompt?
使用 AnnotationDbi 转换 R 中的基因名称
程序员的八年工资变动,令网友羡慕不已:你一个月顶我一年工资
Digital commodity DGE -- the dark horse of wealth in digital economy
2022-06-25:给定一个正数n, 表示有0~n-1号任务, 给定一个长度为n的数组time,time[i]表示i号任务做完的时间, 给定一个二维数组matrix, matrix[j] = {a,
Redis configuration and optimization of NoSQL
数据库查询语句SQL中like、%、-的区别
Is it safe to trade stocks with a compass? How does the compass trade stocks? Do you need to open an account
音视频与CPU架构
Overview of orb-slam3 paper
2022年挖财商学院证券开户安全嘛?
无法上网问题解决过程
网上开户选哪个证券公司?网上开户是否安全么?
Simple use example of Aidl
Oracle连接问题以及解决方案