Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.49 KB

install.md

File metadata and controls

39 lines (26 loc) · 1.49 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 下载PuerTS_V8_x.x.x.tgz 或是别的你需要的Puerts版本。
  2. 将压缩包内的Puerts文件夹解压至你的Assets目录

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

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