發表文章

目前顯示的是 7月, 2017的文章

[UE4] VRWorks UE4.15 Research : Implement

[簡化引擎] 僅保留以下資料夾: ...\Engine\Binaries ...\Engine\Build ...\Engine\Config ...\Engine\Content ...\Engine\Documentation ...\Engine\Extras ...\Engine\Plugins ...\Engine\Programs ...\Engine\Shaders ...\Engine\Source 若需要重新產生Visual Studio專案檔(.sln),則執行以下檔案 ...\Engine\Build\BatchFiles\GenerateProjectFiles.bat [IWYU設定] 將VRWorks導入其他專案,打包時若有使用其他插件,且插件放置於引擎資料夾則可能會發生以下錯誤: "error: Expected xxx.h to be first header included." 這是由於UE4.15的新機制IWYU(用於提升編譯速度)所引起,IWYU在遊戲和遊戲插件中預設禁用,但在引擎和引擎插件中預設啟用 快速解決方式 - 禁用IWYU: 在相應的模塊(該插件) *.build.cs中加入IWYU設定 PCHUsage = PCHUsageMode.UseSharedPCHs; //禁用IWYU 註:PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs; //啟用IWYU 官方文件參考: https://docs.unrealengine.com/latest/CHN/Programming/UnrealBuildSystem/IWYUReferenceGuide/index.html