{"id":1485,"date":"2020-03-28T22:12:33","date_gmt":"2020-03-28T14:12:33","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=1485"},"modified":"2021-01-19T18:40:29","modified_gmt":"2021-01-19T10:40:29","slug":"ue%e7%90%86%e8%a7%a3unrealbuildtool","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=1485","title":{"rendered":"[UE]\u7406\u89e3UnrealBuildTool"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">UBT\u5728\u54ea<\/h2>\n\n\n\n<p><\/p>\n\n\n\n<p>\u5728Windows10\u4e0b\uff0c\u7528UE4+VS2019\u65b0\u5efa\u4e00\u4e2a\u7a7a\u5de5\u7a0bue01\uff0c\u770b\u6b64\u5de5\u7a0b\u7684\u5c5e\u6027\uff0c\u53ef\u4ee5\u770b\u5230\u5728Nmake\u5207\u9875\u4e0a\uff0c\u201c\u751f\u6210\u547d\u4ee4\u884c\u201d\u4e3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"D:\\Program Files\\Epic Games\\UE_4.24\\Engine\\Build\\BatchFiles\\Build.bat\"\nue01 Win64 DebugGame \n-Project=\"$(SolutionDir)$(ProjectName).uproject\" \n-WaitMutex \n-FromMsBuild<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/03\/image-1-1024x356.png\" alt=\"\" class=\"wp-image-1490\" width=\"933\" height=\"324\" srcset=\"https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/03\/image-1-1024x356.png 1024w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/03\/image-1-300x104.png 300w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/03\/image-1-768x267.png 768w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/03\/image-1-70x24.png 70w, https:\/\/blog.coolcoding.cn\/wp-content\/uploads\/2020\/03\/image-1.png 1596w\" sizes=\"(max-width: 933px) 100vw, 933px\" \/><\/figure>\n\n\n\n<p>\u67e5\u770bBuild.bat\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>@echo off\nsetlocal enabledelayedexpansion\n\nREM The %~dp0 specifier resolves to the path to the directory where this .bat is located in.\nREM We use this so that regardless of where the .bat file was executed from, we can change to\nREM directory relative to where we know the .bat is stored.\npushd \"%~dp0\\..\\..\\Source\"\n\nREM %1 is the game name\nREM %2 is the platform name\nREM %3 is the configuration name\n\nIF EXIST ..\\..\\Engine\\Binaries\\DotNET\\UnrealBuildTool.exe (\n        ..\\..\\Engine\\Binaries\\DotNET\\UnrealBuildTool.exe %*\n\t\tpopd\n\n\t\tREM Ignore exit codes of 2 (\"ECompilationResult.UpToDate\") from UBT; it's not a failure.\n\t\tif \"!ERRORLEVEL!\"==\"2\" (\n\t\t\tEXIT \/B 0\n\t\t)\n\t\t \n\t\tEXIT \/B !ERRORLEVEL!\n) ELSE (\n\tECHO UnrealBuildTool.exe not found in ..\\..\\Engine\\Binaries\\DotNET\\UnrealBuildTool.exe \n\tpopd\n\tEXIT \/B 999\n)<\/code><\/pre>\n\n\n\n<p>\u5373\u5728Windows\u5e73\u53f0\u4e0b\uff0cBuild.bat\u8c03\u7528\u7684\u662f<br>D:\\Program Files\\Epic Games\\UE_4.24\\Engine\\Binaries\\DotNET\\UnrealBuildTool.exe<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u7f16\u8bd1Unreal Build Tool<\/h2>\n\n\n\n<p>\u5728D:\\Program Files\\Epic Games\\UE_4.24\\Engine\\Source\\Programs\\UnrealBuildTool\u76ee\u5f55\uff0c<br>\u7528VS2019\u6253\u5f00UnrealBuildTool.csproj\uff0c\u7f16\u8bd1\u4e00\u4e0b\u5c31\u5f97\u5230\u4e86\uff0c\u8f93\u51fa\u5728<br>D:\\Program Files\\Epic Games\\UE_4.24\\Engine\\Binaries\\DotNET\\UnrealBuildTool.exe <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6709\u4ec0\u4e48\u7528\uff1f<\/h2>\n\n\n\n<p>\u4e3a\u4e86\u652f\u6301\u4ee3\u7801\u7684\u591a\u79cd\u7f16\u8bd1\u5f62\u5f0f\u548c\u591a\u5e73\u53f0\u652f\u6301\uff0c\u751a\u81f3\u5c06\u76f8\u540c\u7684\u4ee3\u7801\u7f16\u8bd1\u6210\u4e00\u4e2a.lib\u6216\u8005\u4e00\u4e2a.dll\uff08\u7528\u4e8e\u652f\u6301\u70ed\u52a0\u8f7d\uff09\uff0c\u865a\u5e7b\u5f00\u53d1\u56e2\u961f\u51b3\u5b9a\u5f00\u53d1\u81ea\u5df1\u7684\u6784\u5efa\u5de5\u5177\uff0c\u8fd9\u610f\u5473\u7740\u4e0d\u518d\u4f7f\u7528\u4f20\u7edf\u7684makefile\u6216\u8005MSbuild\uff0c\u800c\u662f\u4f7f\u7528Unreal Build Tool\u3002\u56e0\u6b64\u5728\u865a\u5e7b\u4e2d\u8fdb\u884cC++\u5f00\u53d1\u4ee5\u53ca\u6574\u5408\u7b2c\u4e09\u65b9\u5e93\uff0c\u4e0e\u4f20\u7edf\u65b9\u5f0f\u6bd4\u8d77\u6765\u4f1a\u6709\u4e00\u4e9b\u4e0d\u540c\u3002<\/p>\n\n\n\n<p>Unreal Build Tool\u7531C#\u7f16\u5199\uff0c\u4e14\u4f5c\u4e3a\u6574\u4e2a\u865a\u5e7b\u7f16\u8bd1\u8fc7\u7a0b\u4e2d\u7b2c\u4e00\u4e2a\u7f16\u8bd1\u6b65\u9aa4\u3002\u5f53\u4f60\u8fd0\u884c\u201cGenerateProjectFiles\u201d\uff08\u4e00\u4e2a\u6279\u5904\u7406\u6587\u4ef6\uff0c\u7528\u4e8e\u5728Window\u5e73\u53f0\u4e0b\u751f\u6210Visual Studio\u7684\u89e3\u51b3\u65b9\u6848\u548c\u5de5\u7a0b\uff09\uff0c\u8fd9\u7b2c\u4e00\u4e2a\u6b65\u9aa4\u5c31\u662f\u5728Source\/Programs\/UnrealBuildTool\/UnrealBuiltTool.csproj\u5de5\u7a0b\u4e0b\u6267\u884cMSBuild\u6765\u7f16\u8bd1\u8fd9\u4e2a\u201cUnreal Build Tool\u201d\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\uff0cUnreal Build Tool \u5176\u5b9e\u5c31\u662f\u4e00\u4e2a\u547d\u4ee4\u884c\u7a0b\u5e8f\uff0c\u5374\u53ef\u4ee5\u5b8c\u6210\u5f88\u591a\u4e8b\u60c5\uff0c\u6bd4\u5982\u751f\u6210\u5de5\u7a0b\u6587\u4ef6\u3001\u6267\u884cUnreal Header Tool\u3001\u4e3a\u5404\u79cd\u4e0d\u540c\u7684\u5e73\u53f0\u4e2a\u6784\u5efa\u98ce\u683c\u8c03\u7528\u7f16\u8bd1\u5668\uff08Compiler\uff09\u548c\u8fde\u63a5\u5668\uff08Linker\uff09\u3002\u8fd9\u4e2a\u8fc7\u7a0b\u540e\u9762\u8fd8\u4f1a\u8be6\u7ec6\u89e3\u91ca\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Modules\uff08\u6a21\u5757\uff09<\/h2>\n\n\n\n<p>\u865a\u5e7b\u5f15\u64ce\u4e2d\u7684\u6a21\u5757\u5176\u5b9e\u5c31\u662f\u4e00\u7cfb\u5217\u6e90\u6587\u4ef6\u3002\u53ef\u4ee5\u662fC++\u6a21\u5757\u6216\u8005C#\u6a21\u5757\u3002C#\u6a21\u5757\u4f7f\u7528.csproj\uff08Visual Studio C#\u5de5\u7a0b\u63cf\u8ff0\u6587\u4ef6\uff09\u4f5c\u4e3a\u5b83\u7684\u5de5\u7a0b\u6587\u4ef6\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8eC++\u6a21\u5757\uff0c\u5c31\u6709\u4e9b\u5947\u602a\u4e86\u3002\u6a21\u5757\u4f7f\u7528\u4e00\u4e2a\u201c\u6a21\u5757\u540d.build.cs\u201d\u6587\u4ef6\u6765\u5b9a\u4e49\uff0c\u8fd9\u4e2a\u6587\u4ef6\u8ddfvcxproj\uff08Visual Studio C++\u5de5\u7a0b\u63cf\u8ff0\u6587\u4ef6\uff09\u7c7b\u4f3c\uff0c\u4e00\u4e2aPrivate\u76ee\u5f55\u7528\u4e8e\u5b58\u653e\u79c1\u6709\u7684\u5934\u6587\u4ef6\u548c\u6e90\u6587\u4ef6\uff1b\u4ee5\u53ca\u4e00\u4e2aPublic\u76ee\u5f55\u7528\u4e8e\u5b58\u653e\u516c\u5f00\u7684\u5934\u6587\u4ef6\u548c\u6e90\u6587\u4ef6\u3002<\/p>\n\n\n\n<p class=\"has-text-color has-vivid-cyan-blue-color\">Public\u76ee\u5f55\u4e0b\u7684\u5934\u6587\u4ef6\u9ed8\u8ba4\u4f1a\u66b4\u9732\u7ed9\u5176\u4ed6\u6a21\u5757\uff08\u5728\u6dfb\u52a0\u6a21\u5757\u4f9d\u8d56\u540e\u53ef\u4ee5\u76f4\u63a5include\u8fd9\u4e2a\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\uff09\uff0cPrivate\u76ee\u5f55\u4e0b\u7684\u5219\u4e0d\u4f1a\uff08\u9664\u975e\u624b\u52a8\u6dfb\u52a0PrivateIncludePath\uff09\u3002<\/p>\n\n\n\n<p>\u6240\u4ee5\uff0c\u521b\u5efa\u4e00\u4e2aC++\u6a21\u5757\u7684\u89c4\u5219\u5c31\u662f\uff0c\u5728Engine\/Source \u6216\u8005 \u4f60\u7684\u6e38\u620f\u5de5\u7a0b\/Source \u4e0b\u9762\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u76ee\u5f55\u5e76\u6dfb\u52a0\u4e00\u4e2a.Build.cs\u6587\u4ef6\u3002\u8fd9\u4e2a\u6a21\u5757\u5bf9\u5176\u4ed6\u6a21\u5757\u7684\u4f9d\u8d56\u4e5f\u9700\u8981\u5728.Build.cs\u6587\u4ef6\u5939\u4e2d\u914d\u7f6e\u597d\u3002<\/p>\n\n\n\n<p>\u5bf9\u4e8e\u6574\u5408\u7b2c\u4e09\u65b9\u4ee3\u7801\u4e5f\u662f\u4e00\u6837\uff0c\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55\uff0c\u4e00\u4e2a .Build.cs\uff0c\u5e76\u5728 .Build.cs \u6587\u4ef6\u4e2d\u63cf\u8ff0\u8be5\u6a21\u5757\u5982\u4f55\u6784\u5efa\u4ee5\u53ca\u54ea\u4e9b\u5934\u6587\u4ef6\u9700\u8981\u66b4\u9732\u7ed9\u5176\u4ed6\u6a21\u5757\u3002<\/p>\n\n\n\n<p>\u4e00\u4e2aC++\u6a21\u5757\u53ef\u4ee5\u88ab\u7f16\u8bd1\u4e3a\u4e00\u4e2a\u6574\u4f53\uff08monolith\uff09\uff0c\u4e5f\u53ef\u4ee5\u7f16\u8bd1\u4e3a\u5176\u4ed6\u6a21\u5757\uff08\u4e00\u4e2a\u53ef\u6267\u884c\u6587\u4ef6\uff0cDll\u7b49\uff09\u7684\u4e00\u90e8\u5206\uff0c\u53c8\u6216\u662f\u4e00\u4e2a.dll\u7528\u4e8e\u70ed\u52a0\u8f7d\u3002\u8fd9\u5c31\u662f\u865a\u5e7b\u63d0\u4f9b\u7684\u7075\u6d3b\u6027\u3002<\/p>\n\n\n\n<p>\u53c2\u8003<a href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/docs.unrealengine.com\/en-us\/Programming\/UnrealBuildSystem\/ModuleFiles\" target=\"_blank\" rel=\"noreferrer noopener\">Modules<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Targets\uff08\u76ee\u6807\uff09<\/h2>\n\n\n\n<p>\u865a\u5e7b\u4e2d\u7684\u4e00\u4e2aTarget\u53ef\u4ee5\u88ab\u7406\u89e3\u4e3a\u524d\u9762\u63d0\u5230\u7684\u4e00\u4e2a\u201c\u7f16\u8bd1\u5f62\u5f0f\u201d\u3002<\/p>\n\n\n\n<p>UnrealBuildTool\u652f\u6301\u6784\u5efa\u591a\u4e2a\u76ee\u6807\u7c7b\u578b\uff1a <\/p>\n\n\n\n<ul><li>Game\u6e38\u620f &#8211; \u4e00\u4e2a\u72ec\u7acb\u7684\u6e38\u620f <\/li><\/ul>\n\n\n\n<ul><li>Client\u5ba2\u6237\u7aef &#8211; \u4e0e\u6e38\u620f\u76f8\u540c\uff0c\u4f46\u4e0d\u5305\u542b\u4efb\u4f55\u670d\u52a1\u5668\u4ee3\u7801\u3002\u9002\u7528\u4e8e\u7f51\u7edc\u6e38\u620f\u3002 <\/li><\/ul>\n\n\n\n<ul><li>Server\u670d\u52a1\u5668 &#8211; \u4e0e\u6e38\u620f\u76f8\u540c\uff0c\u4f46\u4e0d\u5305\u542b\u4efb\u4f55\u5ba2\u6237\u7aef\u4ee3\u7801\u3002\u9002\u7528\u4e8e\u7f51\u7edc\u6e38\u620f\u4e2d\u7684\u4e13\u7528\u670d\u52a1\u5668\u3002 <\/li><\/ul>\n\n\n\n<ul><li>Editor\u7f16\u8f91\u5668 &#8211; \u6269\u5c55\u865a\u5e7b\u7f16\u8f91\u5668\u7684\u76ee\u6807\u3002<\/li><\/ul>\n\n\n\n<ul><li>Program\u7a0b\u5e8f &#8211; \u6784\u5efa\u5728\u865a\u5e7b\u5f15\u64ce\u4e4b\u4e0a\u7684\u72ec\u7acb\u5b9e\u7528\u7a0b\u5e8f\u3002<\/li><\/ul>\n\n\n\n<p>\u76ee\u6807\u662f\u901a\u8fc7\u6269\u5c55\u540d\u4e3a.Target.cs\u7684C#\u6e90\u6587\u4ef6\u58f0\u660e\u7684\uff0c\u5e76\u5b58\u50a8\u5728\u9879\u76ee\u7684Source\u76ee\u5f55\u4e0b\u3002 \u53ef\u4ee5\u901a\u8fc7\u5b83\u6765\u8bbe\u7f6e\u4e00\u5806Target\u6240\u4f9d\u8d56\u7684\u5b9a\u4e49\u548c\u5176\u4ed6\u5c5e\u6027\u7b49\u3002\u5373\u4f7f\u50cfUnrealHeaderTool\u8fd9\u6837\u7684Unreal\u5b9e\u7528\u7a0b\u5e8f\u4e5f\u662f\u4f5c\u4e3aProgram\u76ee\u6807\u6784\u5efa\u7684\u3002<\/p>\n\n\n\n<p>\u53c2\u8003<a href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/docs.unrealengine.com\/en-US\/Programming\/UnrealBuildSystem\/TargetFiles\" target=\"_blank\" rel=\"noreferrer noopener\">TargetFiles<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u751f\u6210\u9879\u76ee\u6587\u4ef6<\/h2>\n\n\n\n<p>\u9996\u5148\uff0c\u8981\u505a\u7684\u662f\u8fd0\u884cGenerateProjectFiles\u3002\u4f46\u662f&#8230;&#8230;\u4f1a\u53d1\u751f\u4ec0\u4e48\uff1f<\/p>\n\n\n\n<ul><li>Unreal Build Tool\u88ab\u6784\u5efa\u4e86\u3002<\/li><li>\u6279\u5904\u7406\u6587\u4ef6\u8c03\u7528\u4e86\u7c7b\u4f3c\u5982\u4e0b\u7684\u547d\u4ee4\uff08\u53d6\u51b3\u4e8e\u60a8\u7684\u9879\u76ee\uff0cVisual Studio\u7248\u672c\uff0c\u5e73\u53f0\u7b49\uff09<br>-ProjectFiles -nodummyconfigs -game -engine -2017 &#8220;-project=Path\\To\\Your\\Project.uproject&#8221; -Platforms=Win64+XboxOne+UWP64 -noSolutionSuffix<br><\/li><li>Unreal Build Tool\u4f1a\u5728\u5f15\u64ce\u548c\u6e38\u620f\u76ee\u5f55\u641c\u7d22\u6240\u6709\u5e26\u6709.Build.cs\u62d3\u5c55\u7684\u6587\u4ef6\u6765\u53d1\u73b0\u6240\u6709\u5b9a\u4e49\u7684\u6a21\u5757\u3002<br><\/li><li>Unreal Build Tool\u4f1a\u641c\u7d22\u6240\u6709\u5e26\u6709.Target.cs\u62d3\u5c55\u7684\u6587\u4ef6\u6765\u53d1\u73b0\u6240\u6709\u5b9a\u4e49\u7684\u76ee\u6807\u3002<\/li><li>\u5b83\u5c06\u751f\u6210\u4e00\u4e2a\u5305\u542b\u6240\u6709\u76ee\u6807\u4f5c\u4e3a\u6784\u5efa\u914d\u7f6e\u548c\u6240\u6709\u6a21\u5757\u4f5c\u4e3a\u9879\u76ee\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/li><\/ul>\n\n\n\n<p>C\uff03\u9879\u76ee\u53ea\u662f\u6e90\u6587\u4ef6\u5939\u4e2d\u7684.csproj\u6587\u4ef6\u3002C ++\u9879\u76ee\u5e76\u4e0d\u5b8c\u5168\u662f\u201c\u6807\u51c6\u201d\u9879\u76ee\u3002\u5b83\u4e0d\u518d\u8c03\u7528MSBuild\uff0c\u800c\u662f\u8c03\u7528UnrealBuildTool\uff01<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6784\u5efaC++\u9879\u76ee<\/h2>\n\n\n\n<p>\u5728Unreal\u4e2d\u6784\u5efaC++\u9879\u76ee\u65f6\uff0c\u60a8\u53ef\u4ee5\u770b\u5230\uff08\u57fa\u4e8evcxproj\u7684NMakeBuildCommandLine\u5c5e\u6027\uff09\u5c06\u8c03\u7528\u4e0e\u6b64\u7c7b\u4f3c\u7684\u547d\u4ee4\u884c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>C:\\Path\\To\\Your\\Engine\\Build.bat TargetName Win64 Debug \"$(SolutionDir)$(ProjectName).uproject\" -waitmutex $(AdditionalBuildArguments) -2017<\/code><\/pre>\n\n\n\n<p>\u5b83\u7684\u80cc\u540e\u5176\u5b9e\u53c8\u8c03\u7528\u4e86UnrealBuildTool\uff01<\/p>\n\n\n\n<p>\u90a3\u4e48\uff0cUnrealBuildTool\u5728\u8fd9\u513f\u7684\u4f5c\u7528\u662f\uff1a<\/p>\n\n\n\n<ul><li>\u7f16\u8bd1\u76ee\u6807\u3002\u5b83\u5728\u8fd0\u884c\u65f6\u7f16\u8bd1\u4e86.Target.cs\u4ee3\u7801\uff08\u4f7f\u7528C#\u7f16\u8bd1\u5668\uff09\u6765\u83b7\u53d6\u6784\u5efa\u5c5e\u6027\u3002\u8fd9\u662fUnrealBuildTool\u4ece\u4e2d\u83b7\u53d6\u5927\u90e8\u5206\u5b9a\u4e49\u548c\u5e73\u53f0\u4fe1\u606f\u7684\u5730\u65b9\u3002\u67d0\u4e9b\u5c5e\u6027\uff08\u4f8b\u5982bBuildEditor\uff09\u8868\u793a\u4f60\u9700\u8981\u7684\u662f\u6784\u5efa\u7f16\u8f91\u5668\u3002\u5b83\u4f1a\u521b\u5efa\u4e00\u4e2aWITH_EDITOR\u5b9a\u4e49\uff0c\u7136\u540e\u7531\u7f16\u8bd1\u5668\u8f6c\u53d1\u5230\u6e90\u6587\u4ef6\u3002\u4ee5\u5b9e\u73b0\u6e90\u4ee3\u7801\u4e2d\u7684\u6761\u4ef6\u7f16\u8bd1\uff1a#if WITH_EDITOR \u6761\u4ef6\u7f16\u8bd1\u3002<\/li><li>\u89e3\u6790\u6240\u6709\u4f9d\u8d56\u6a21\u5757\uff0c\u5305\u542b\u6765\u81ea.Target.cs\u548c.Build.cs\uff08\u6a21\u5757\uff09\u7684\u4f9d\u8d56\u3002<\/li><li>\u5c06\u7f16\u8bd1\u6240\u6709\u4f9d\u8d56\u6a21\u5757\u7684Build.cs\uff0c\u4ee5\u83b7\u53d6\u6709\u5173\u5982\u4f55\u6784\u5efa\u6bcf\u4e2a\u6a21\u5757\u7684\u989d\u5916\u5c5e\u6027\u3002<\/li><li>\u89e3\u6790\u54ea\u4e9b\u6a21\u5757\u4f7f\u7528\u4e86\u5171\u4eab\u7f16\u8bd1\u5934(\u5373.Build.cs\u6587\u4ef6\u4e2d\u5305\u542bSharedPCHHeaderFile\u5c5e\u6027\uff0c\u6bd4\u5982CoreUObject,Core,Engine\u7b49)\u3002<\/li><li>\u89e3\u6790\u54ea\u4e9b\u6a21\u5757\u4f9d\u8d56\u4e8eUObject\u6a21\u5757\u3002<\/li><li>\u5bf9\u6240\u6709\u4f9d\u8d56\u4e8eUObject\u7684\u6a21\u5757\u8fd0\u884cUnreal Header Tool\uff0c\u8fd9\u65f6\u865a\u5e7b\u5f15\u64ce\u4f1a\u6ce8\u5165\u4e00\u4e9b\u884c\u4e3a\u5230\u4f60\u7684\u7c7b\u4e2d\uff0c\u5f3a\u5236\u4f60\u5728\u6587\u4ef6\u4e2d\u52a0\u5165\u7531Unreal Header Tool\u751f\u6210\u7684\u201c.generated.h\u201d\u5934\u6587\u4ef6\u3002<\/li><li>\u57fa\u4e8eUnreal Header Tool\u751f\u6210\u7684\u4ee3\u7801\uff0c\u89e3\u6790\u6240\u6709Include\u8def\u5f84\u3002<\/li><li>\u57fa\u4e8e\u89e3\u6790\u540e\u7684\u8def\u5f84\u3001\u5b9a\u4e49\u3001\u5916\u90e8\u5e93\u7b49\uff0c\u751f\u6210\u4e00\u7cfb\u5217\u4f1a\u5728\u76ee\u6807\u73af\u5883\u6267\u884c\u7684\u547d\u4ee4\u5217\u8868\uff1a<\/li><li>\u4e3a\u5171\u4eab\u9884\u7f16\u8bd1\u5934\u8c03\u7528\u7f16\u8bd1\u5668\uff08CL.EXE\uff09<\/li><li>\u8c03\u7528\u7f16\u8bd1\u5668\u6765\u7f16\u8bd1\u6e90\u6587\u4ef6\uff08CL.EXE\uff09<\/li><li>\u8c03\u7528\u94fe\u63a5\u5668\uff08LINK.EXE\uff09<\/li><li>\u8c03\u7528\u6240\u6709\u8fd9\u4e9b\u64cd\u4f5c<\/li><\/ul>\n\n\n\n<p>\u663e\u7136\uff0c\u8fd9\u4e9b\u6b65\u9aa4\u6bd4\u8f83\u7b80\u7565\u3002\u8fd8\u6709\u66f4\u591a\u7684\u7ec6\u8282\u548c\u8bbe\u7f6e\uff0c\u6bd4\u5982\u4f60\u662f\u5426\u4f7f\u7528CLR\uff0c\u662f\u5426\u4f7f\u7528Mono\uff0c\u662f\u5426\u4f7f\u7528Clang\u7b49\u7b49\u3002\u4f46\u5927\u81f4\u7684\u6b65\u9aa4\u548c\u4e0a\u9762\u6240\u8bb2\u7684\u4e00\u6837\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>UBT\u5728\u54ea \u5728Windows10\u4e0b\uff0c\u7528UE4+VS2019\u65b0\u5efa\u4e00\u4e2a\u7a7a\u5de5\u7a0bue01\uff0c\u770b\u6b64\u5de5\u7a0b\u7684\u5c5e\u6027\uff0c\u53ef\u4ee5\u770b\u5230\u5728N [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[26],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1485"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1485"}],"version-history":[{"count":10,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1485\/revisions"}],"predecessor-version":[{"id":1813,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/1485\/revisions\/1813"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1485"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1485"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1485"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}