目录
https://github.com/Cysharp/UniTask.gitpath=src/UniTask/Assets/Plugins/UniTask
方便快速查找
一、UniTask的简介和安装
项目地址:GitHub - Cysharp/UniTask: Provides an efficient allocation free async/await integration for Unity.
安装方式:
1.通过unity的PackageManager安装,需要一个支持git包路径查询参数的Unity版本 (Unity >= 2019.3.4f1, Unity >= 2020.1a21). 可以添加这个地址到PackageManager
https://github.com/Cysharp/UniTask.gitpath=src/UniTask/Assets/Plugins/UniTask
2.or add "com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask"
to Packages/manifest.json
.
如果你想设置一个目标版本,也可以使用*.*.*发布标记指定版本,例如#2.1.0可以这样,https://github.com/Cysharp/UniTask.git?path=src/UniTask/Assets/Plugins/UniTask#2.1.0
Install via OpenUPM
The package is available on the openupm registry. It's recommended to install it via openupm-cli.
openupm add com.cysharp.unitask