Unreal 开发之 --- 问题汇总
总结在开发和学习中遇到的常见错误及解决方法 1. Epic Launcher 登录不成功 首先排除在任务管理器中重复进程,有时候启动两个进程导致始终登录不了 其实为添加Epic Game Launcher 目标位置添加 -http=wininet 这个方法不一定有效….但可以一试
2.’class’ type redefinition 类重复定义 确认只定义一次类名,却老是报定义重复,问题在于 头文件中的宏 #pragma once 因unreal 工程示例中没有#ifndef /#define/#endif 宏,故为了省事也为了保持一致,才出现这样的头文件重复引用的错误。 3.debug 游戏项目却打开了引擎
需选择指定目标,默认是DebugGame Editer 4.GlobalShaderCache-PCD3D_SM5.bin is missing
需要在Unreal 编辑文件菜单中,刷新并构建项目 5.UE 4.11源码编译报错 ‘bAttributeLessDraw’: undeclared identifierUE4 解决办法:第2793行末尾有一个”(中文右双引号),替换为英文双引号并保存即可 6.VS2015 Build工程失败 错误描述(类似):
‘/IC:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE’: command line argument number 279 does not match precompiled header
解决办法1(直到VS update 2为止, build 4.12.5之前的版本都没有问题. 安装VS update 3以后, 只能build 4.12.5以及之后的版本.):
- Completely uninstall visual studio
- Use the Extra visual studio uninstall cleaner. Found here: https://github.com/Microsoft/VisualStudioUninstaller/releases
- Delete the remaining Visual Studio installation folder.
- Do a restart and this machine should be ready for a clean installation
- Download the Visual Studio 2015 installer without any updates: https://www.microsoft.com/en-us/download/details.aspx?id=48146
- Now make sure you do a custom installation and deselect update 3!!!
- Once the installation is finished you need to generate visual studio project files for your unreal projects.解决办法2: UE4 to 4.12.5 版本修复了这个问题
7.UE4编辑器 虚拟现实预览 是灰色的 VR Preview grey 问题:使用UE4开发 HTC VIVE时,使用UE4 4.12版本可以使用VR Preview,但4.13及以后的版本不可以选择 解决办法:启动Steam->库>SteamVR->右键属性->打开本地文件的选项卡->点开验证工具缓存的完整性 (如果还无效,删除SteamVR重新安装)
- Stereo Panoramic Movie Capture export black png: 错误信息:LogD3D11RHI: Timed out while waiting for GPU to catch up. (0.5 s) 解决办法:换好的显卡就OK 参考: Stereo Panoramic plugin in Standalone causes dark shadows 从虚幻 4 中采集 360 度立体电影
4.11 preview 7 Stereo Panoramic export works!
SeamVR 全屏 UE4 VR 模式下全屏解决办法
制作天空盒示例
转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 xue_huashan@163.com
文章标题:Unreal 开发之 --- 问题汇总
文章字数:646
本文作者:max-xue
发布时间:2016-09-01, 18:43:51
最后更新:2019-11-08, 17:59:31
原始链接:http://blog.le-more.com/2016/09/01/ue4/unreal-e5-bc-80-e5-8g/版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。