Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 1.55 KB

install.md

File metadata and controls

40 lines (27 loc) · 1.55 KB

如何安装

How to install

Add from OpenUPM | available in 2018+

PuerTS 现已上传 OpenUPM: https://openupm.com/packages/com.tencent.puerts.core/

你可按照OpenUPM所支持的方式安装


Add from GitHub | available in 2019.4+

You can add it directly from GitHub on Unity 2019.4+. Note that you won't be able to receive updates through Package Manager this way, you'll have to update manually.

  • open Package Manager
  • click +
  • select Add from Git URL
  • paste https://github.com/chexiongsheng/puerts_unity_demo.git?path=/package
  • click Add

Download code and native plugins manually | available in all version 以往支持的源码安装模式依旧支持。相比前两种方式管理起来稍麻烦,但对代码魔改更友好。
  1. 前往 Github Releases 下载你想要的版本的Plugins和Source Code
  2. Source Code.zipunity/Assets/Puerts拷贝到你的unity目录
  3. Plugins_xxx.zip解压放入Puerts/Runtime/Plugins

如果你是2018以下版本,还需要你将Puerts代码内的内置js手动加上.txt后缀

mac下如果遇到移入废纸篓问题,请使用sudo xattr -r -d com.apple.quarantine puerts.bundle。但用了后提交git容易出问题