PuerTS Puerts
Unity Puerts 2.X
# npm
npm install @puerts/cli -g
# yarn
yarn global add @puerts/cli
#
puer -v
puer
Puerts Cli --help
#
puer -h
# build
puer build -h
# ...
Unity 2021+ LTS
3DPuerts
Puerts
Assets/
Assets/Puerts/
Puerts
Assets
-> Puerts
-> Plugins
-> xx
-> xx
Inspector
Apply
Editorpackage
PuertsWebGL
PuertsWebGL
Assets/
Assets/PuertsWebGL/
minigame.xxx.unitypackage
Puerts
Unity
puer init
Puerts
Gamma
Web
Editor
-> Project Settings
-> Player
-> Other Settings
-> Color Space
-> Gamma
Editor
-> Project Settings
-> Player
-> Other Settings
-> Allow 'unsafe' Code
Puerts
Code
PuerTS
-> Clear Generated Code
PuerTS
-> Generated Code
PuerTS
-> Generated index.d.ts (global.CS style)
Puerts
Unity
puer build
TS
JS
Unity Editor
Assets/Scenes/App.unity
Play
Unity
puer dev
TS
JS
--reload false
File
-> Build Settings
-> WebGL
-> Switch Platform
File
-> Build Settings
-> Add Open Scenes
->
cd Unity
puer build --target minigame --browse
puerts
TS
puer.config.js
minigameOutputDir
``Web
Assets/Screnes/App.unity
Hierarchy
-> Main
Inspector
Debug
Unity
Side
-> `` -> Puerts
Vscode
Debugger for Unity
PuerTS_Nodejs
Node
require
import
import
Web```
Node`Shader.Find("Particles/Standard Unlit")
./``../
Tencent @zombieyang4399 Game @sbfkcel