前一段时间因为一些事,重装系统 然后重新安装UE4跟VS ,突然发现。。。竟然之前的UE4原先的项目找不到了,然后用UE4打开就提示
“该文件没有与之关联的程序来执行该操作,请先安装一个程序。。。”
发现右键 .uproject 的菜单栏选项不见了,折腾了一下弄回来了
删除注册表
- ctrl+r 输入 regegit 调出注册表
- 删除 HKEY_CLASSES_ROOT 下的 .uproject
新建一个文本文档,然后改名为 UnrealProjectMenuRegistration.cmd,脚本源码在下面
:: UnrealProjectMenuRegistration.cmd
::
:: This batch file will try to find where the Unreal Engine is installed, then update your registry
:: to register the Unreal Project File type (and its right click menu for things such as generating
:: Visual Studio project files, and launching)
::
:: Run as an Administrator, as it's required for writing to HKLM.
::
:: Author: David Moore <david@sadrobot.co.nz&