Unreal 4 C++ 遇到一些问题 及解决

  1. VS无法启动项目
 "Unable to start program 'C:\Program Files\Epic Games\UE_4.22\Engine\Intermediate\Build\Unused\UE4.exe'."
 
 It is because UE4 was set as the startup project. To fix it, go to the Solution Explorer in Visual Studio, 
then right-click on your game project > Set as StartUp Project.
  1. 未经处理的异常: Path fragment '"contains invalid directory separators.
    因为使用git管理项目时,删除一些资源,未commit,
    VS指的是GIT中的最后一次提交,而不是文件系统的当前状态。所以会出现一些无效的文件路径。