vs2022 / Rider编译UE5.3源,UE5部署流程
1.安装Visual Studio 2022 专业版
①.下载链接:
https://pan.baidu.com/s/1yGK5t3d1KHG0XwcVPKWHvQ. 提取码:7777。
②. 安装步骤:
https://mp.weixin.qq.com/s/rMLWYrhDFkh4w_A93sHFIw。
根据链接提示的步骤一步步安装,记得要安装Visual Studio 2022 专业版,后续开发需要。
2.部署UE5开发环境使用VS2022的IDE:
①.官方链接:
按照以上步骤可以选择设置Visual Studio,设置Visual Studio以使用虚幻引擎的提示、技巧和技术 。
②. 配置环境变量
打开引擎的安装目录,即Engine/Config/BaseEngine.ini ,确保你设置了以下配置变量:
[/Script/MacTargetPlatform.XcodeProjectSettings]
bUseModernXcode=true
③.生成项目文件
为引擎和项目重新生成你的Xcode项目文件。如果你使用的是UE的源代码版本,请在引擎安装目录中运行GenerateProjectFiles.bat脚本,为UE的源代码重新生成项目文件。
【提示】如果运行时报错误:
GenerateProjectFiles ERROR: It looks like you’re missing some files that are required in order
to generate projects. Please check that you’ve downloaded and unpacked the engine source code,
binaries, content and third-party dependencies before running this script.
该报错是UE引擎的源码中依赖项缺失 执行Setup.bat || Setup.sh 下载即可。
下载结束后执行③;
④.构建编译
打开生成的 .sln 文件,通常位于Unreal Engine 的根目录。
在 Visual Studio 中,设置解决方案配置为 Development Editor 和平台为 Win64,configurations选择UE5。
选择“构建”菜单中的“构建解决方案”或对应的项目来开始编译过程。
编译成功后,你期望的目录和文件应该会被创建。
3.部署UE5开发环境使用Rider的IDE:
①.安装Rider:
激活工具: https://wwoz.lanzoul.com/iQHnD0z9vjje。
rider激活码: https://chenjunan.top/img/activate/rider-new.txt。
安装教程: https://www.bilibili.com/read/cv24626184。
②.配置和构建源代码:
打开生成的 .sln 文件,通常位于 Unreal Engine 的根目录。
设置解决方案配置为 Development Editor 和平台为 Win64,configurations选择UE5。
选择“构建”菜单中的“构建解决方案”或对应的项目来开始编译过程。
编译成功后,你期望的目录和文件应该会被创建。