找回密码
 立即注册
查看: 249|回复: 0

Puerts环境搭建(UE 5.02)

[复制链接]
发表于 2023-9-3 22:35 | 显示全部楼层 |阅读模式
转载记录过程
1.新建C++项目
2.复制Puerts和ReactUMG到Plugins目录下
3.从头生成一次 VS 工程
4.编译.sln
5.到Plugins\Puerts目录下,shift + 右键 ,召唤powershell  node 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
懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Unity开发者联盟 ( 粤ICP备20003399号 )

GMT+8, 2024-4-30 10:21 , Processed in 0.110475 second(s), 26 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表