UE4的编译配置详解

分类: UE4 |
编译配置分为两部分:
State
State包括:
Debug、DebugGame、Development、Shipping
Target包括:
空、Client、Editor、Server
任意组合将出现如下列表:
Debug
Debug Client
Debug
Editor
Debug Server
DebugGame
DebugGame Client
DebugGame Editor 游戏代码可调试无优化,可以使用Editor相关代码功能,引擎不可调试,资源不需要Cook。
DebugGame Server
Development
Development Client
Development
Editor
Development Server
Shipping
Shipping Client
Shipping是没有Editor的,因为Shipping和Development的区别就是,Shipping去掉了性能分析模块,因为当你需要测试性能时,分析模块是必须要有的。所以Shipping是不可能有Editor版本的,因为编辑器内置各类分析功能
Shipping Server
Test
Test Client
Test Server
通常打包可以输出3中版本:
DebugGame、Development、Shipping
调试的时候Debug、DebugGame、Development是不可以直接在VS中启动的,首先会提示资源需要Cook,然而Cook之后会发现路径不对。
这时候需要我们手动指定执行的Exe程序:
1.通过编辑器打包游戏,比如DebugGame,然后打包输出到E:\UE4Cooked\WindowsNoEditor\FSGame\Binaries\Win64\FSGame-Win64-DebugGame.exe
2.拷贝工程下编译生成的exe程序比如:
FSGame.exe
FSGame-Win64-Debug.exe
FSGame-Win64-DebugGame.exe
其中任意一个替换拷贝至打包好的路径。
3.VS右键工程属性
http://s12/mw690/001Jjt9Ity71tIPT3h9eb&690