maojianmi 发表于 2023-9-3 22:35

Puerts环境搭建(UE 5.02)

转载记录过程
1.新建C++项目
2.复制Puerts和ReactUMG到Plugins目录下
3.从头生成一次 VS 工程
4.编译.sln
5.到Plugins\Puerts目录下,shift + 右键 ,召唤powershellnode enable_puerts_module.js
6.去到工程根目录 powershell npm init
7.package.json插手代码
,
”dependencies”: {
                        ”@types/react”: ”^15.6.6”,
                        ”@types/react-reconciler”: ”^0.18.0”,
                        ”@types/mocha”: ”^7.0.1”
               }8.从头生成sln,编译
9.到工程根目录 npm install
10.打开工程根目录的 tsconfig.json, 在 typeRoots 中 插手 ”Plugins/ReactUMG/Typing”,
11.打开 UE4 工程,在引擎中点击 ue.d.ts ,将会在如下目录生成对应将 ue 中的 API 反射成 ts 可调用的库文件

参考

5.02 生成的一个工程可以直接使用
链接:https://pan.baidu.com/s/19QwTWNc5_CmPjqSxh0ZBig?pwd=zu93
提取码:zu93
页: [1]
查看完整版本: Puerts环境搭建(UE 5.02)