From 0ea18d0e163d68a0d272b0942684bd8540ebc902 Mon Sep 17 00:00:00 2001 From: hadashiA Date: Fri, 1 Sep 2023 19:11:07 +0900 Subject: [PATCH 1/2] Update README about DOTween --- README.md | 12 ++---------- README_CN.md | 4 ++-- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index ff1bf63..8571cb0 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -UniTask === [![GitHub Actions](https://github.com/Cysharp/UniTask/workflows/Build-Debug/badge.svg)](https://github.com/Cysharp/UniTask/actions) [![Releases](https://img.shields.io/github/release/Cysharp/UniTask.svg)](https://github.com/Cysharp/UniTask/releases) [![Readme_CN](https://img.shields.io/badge/UniTask-%E4%B8%AD%E6%96%87%E6%96%87%E6%A1%A3-red)](https://github.com/Cysharp/UniTask/blob/master/README_CN.md) @@ -44,7 +43,6 @@ For advanced tips, see blog post: [Extends UnityWebRequest via async decorator p - [API References](#api-references) - [UPM Package](#upm-package) - [Install via git URL](#install-via-git-url) - - [Install via OpenUPM](#install-via-openupm) - [.NET Core](#net-core) - [License](#license) @@ -658,7 +656,8 @@ By default, UniTask supports TextMeshPro(`BindTo(TMP_Text)` and `TMP_InputField` There are defined in separated asmdefs like `UniTask.TextMeshPro`, `UniTask.DOTween`, `UniTask.Addressables`. -TextMeshPro and Addressables support are automatically enabled when importing their packages from package manager. However for DOTween support, it is required to import `com.demigiant.dotween` from [OpenUPM](https://openupm.com/packages/com.demigiant.dotween/) or to define `UNITASK_DOTWEEN_SUPPORT` to enable it. +TextMeshPro and Addressables support are automatically enabled when importing their packages from package manager. +However for DOTween support, after importing from the [DOTWeen assets](https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676r) and define the scripting define symbol `UNITASK_DOTWEEN_SUPPORT` to enable it. ```csharp // sequential @@ -1072,13 +1071,6 @@ or add `"com.cysharp.unitask": "https://github.com/Cysharp/UniTask.git?path=src/ If you want to set a target version, UniTask uses the `*.*.*` release tag so you can specify a version like `#2.1.0`. For example `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](https://openupm.com). It's recommended to install it via [openupm-cli](https://github.com/openupm/openupm-cli). - -``` -openupm add com.cysharp.unitask -``` .NET Core --- diff --git a/README_CN.md b/README_CN.md index 05c841c..9e1a8bf 100644 --- a/README_CN.md +++ b/README_CN.md @@ -43,7 +43,6 @@ UniTask - [API References](#api-references) - [UPM Package](#upm-package) - [通过 git URL 安装](#%E9%80%9A%E8%BF%87-git-url-%E5%AE%89%E8%A3%85) - - [通过 OpenUPM 安装](#%E9%80%9A%E8%BF%87-openupm-%E5%AE%89%E8%A3%85) - [.NET Core](#net-core) - [License](#license) @@ -661,7 +660,8 @@ UniTaskTracker 仅用于调试用途,因为启用跟踪和捕获堆栈跟踪 在单独的 asmdef 中定义,如`UniTask.TextMeshPro`, `UniTask.DOTween`, `UniTask.Addressables`. -从包管理器导入包时,会自动启用 TextMeshPro 和 Addressables 支持。但是对于 DOTween 支持,需要`com.demigiant.dotween`从[OpenUPM](https://openupm.com/packages/com.demigiant.dotween/)导入或定义`UNITASK_DOTWEEN_SUPPORT`以启用它。 +从 Package manager 中导入软件包时,会自动启用对 TextMeshPro 和 Addressables 的支持。 +但对于 DOTween 支持,则需要从 [DOTWeen assets](https://assetstore.unity.com/packages/tools/animation/dotween-hotween-v2-27676r) 中导入并定义脚本定义符号 `UNITASK_DOTWEEN_SUPPORT` 后才能启用。 ```csharp // 动画序列 From e5cc8667acaa4424b0a39a263d37e8c9cfbd2836 Mon Sep 17 00:00:00 2001 From: hadashiA Date: Thu, 7 Sep 2023 00:58:51 +0000 Subject: [PATCH 2/2] docs: update TOC --- README_CN.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README_CN.md b/README_CN.md index 9e1a8bf..d91d68d 100644 --- a/README_CN.md +++ b/README_CN.md @@ -43,6 +43,7 @@ UniTask - [API References](#api-references) - [UPM Package](#upm-package) - [通过 git URL 安装](#%E9%80%9A%E8%BF%87-git-url-%E5%AE%89%E8%A3%85) + - [通过 OpenUPM 安装](#%E9%80%9A%E8%BF%87-openupm-%E5%AE%89%E8%A3%85) - [.NET Core](#net-core) - [License](#license)