vault backup: 2025-01-01 22:20:19
This commit is contained in:
parent
9adc97b78f
commit
d654e64e82
@ -46,9 +46,10 @@ tsc xxx.ts
|
|||||||
|
|
||||||
# Puerts
|
# Puerts
|
||||||
## Setup
|
## Setup
|
||||||
1. 编译插件。
|
1. 将对应版本的Puerts放入插件目录。比如puerts_nodejs的`puerts_nodejs\puerts_nodejs\Puerts`直接放到插件目录即可。
|
||||||
2. 进入插件目录`Plugins\Puerts`执行`node enable_puerts_module.js`。
|
2. 编译插件。
|
||||||
3. 在项目根目录下执行`npm init`,并且添加。之后重新生成一次VS解决方案并且执行`npm install`。
|
3. 进入插件目录`Plugins\Puerts`执行`node enable_puerts_module.js`。
|
||||||
|
4. 在项目根目录下执行`npm init`,并且添加。之后重新生成一次VS解决方案并且执行`npm install`。
|
||||||
```json
|
```json
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/react": "^15.6.6",
|
"@types/react": "^15.6.6",
|
||||||
@ -57,7 +58,7 @@ tsc xxx.ts
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
4. 代码写在项目目录下的`TypeScript`中,之后就会在编辑器`Blueprints/TypeScript`目录下出现资产图标。
|
4. 代码写在项目目录下的`TypeScript`中,之后就会在编辑器`Blueprints/TypeScript`目录下出现资产图标。
|
||||||
5. 加入ReactUMG。
|
5. ~~加入ReactUMG。~~ 非必须
|
||||||
1. 进入 Content/javascript 目录 npm init 创建 package.json。
|
1. 进入 Content/javascript 目录 npm init 创建 package.json。
|
||||||
2. 创建成功后,向文件中粘贴如下内容
|
2. 创建成功后,向文件中粘贴如下内容
|
||||||
```json
|
```json
|
||||||
|
Loading…
x
Reference in New Issue
Block a user