Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 639a1a5

Browse files
committed
update for 2.0.4
1 parent c01b710 commit 639a1a5

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

README-ZH.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ UIWidgets的各个版本所需的Unity版本如下表所示。您可以从[https
6161
| -----------------------------------------------| ------------------------- | ------------------------- |
6262
| 1.5.4 及以下 | 2019.4.10f1 及以上 | N\A |
6363
| 2.0.1 | 2019.4.26f1c1 | N\A |
64-
| 2.0.2 及以上 | 2019.4.26f1c1 ~ 2019.4.29f1c1 | N\A |
64+
| 2.0.3 | 2019.4.26f1c1 ~ 2019.4.29f1c1 | N\A |
65+
| 2.0.4及以上 | 2019.4.26f1c1 ~ 2019.4.29f1c1 | 2020.3.24f1c2 及以上 |
6566

6667
#### UIWidgets包
6768

@@ -83,7 +84,7 @@ UIWidgets的各个版本所需的Unity版本如下表所示。您可以从[https
8384

8485
#### 运行环境
8586

86-
**UIWidgets 2.0**目前暂时只支持MacOS(Metal),iOS(Metal),Android(Armv7,OpenGLes)以及 Windows(Direct3D11)。我们后续会针对更广泛的运行环境进行适配,敬请期待。与之相对的,UIWidgets 1.0目前支持所有Unity导出目标平台。
87+
**UIWidgets 2.0**目前暂时只支持MacOS(Intel64,Metal),iOS(Metal),Android(OpenGLes)以及 Windows(Direct3D11)。我们后续会针对更广泛的运行环境进行适配,敬请期待。与之相对的,UIWidgets 1.0目前支持所有Unity导出目标平台。
8788

8889
## 入门指南
8990

@@ -274,5 +275,9 @@ using(Isolate.getScope(the isolate of your App)) {
274275
275276
由于UIWidgets 2.0在效果和效率上的优势,因此推荐大家使用。仅当您需要在UIWidgets 2.0暂时不支持的平台(如webgl)上开发时才推荐使用UIWidgets 1.0。此外,由于人力原因,目前只有UIWidgets 2.0我们会持续更新。
276277
278+
4. 使用Unity 2020.3LTS打包UIWidgets 2.0的项目到iOS平台后Build失败,提示无法链接到OpenGLES库函数。
279+
280+
这是因为在Unity 2020.3版本中Unity导出的iOS项目默认不再包含对OpenGLES库的依赖,但UIWidgets 2.0需要依赖该库。为了解决这个问题,您需要手动用Xcode打开项目并为UnityFramework添加上对OpenGLES库的依赖。
281+
277282
## 如何贡献
278283
请查看[CONTRIBUTING.md](CONTRIBUTING.md)

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ Specifically, the compatible Unity versions for each UIWidgets release are liste
7171
| -----------------------------------------------| ------------------------- | ------------------------- |
7272
| 1.5.4 and below | 2019.4.10f1 and above | N\A |
7373
| 2.0.1 | 2019.4.26f1c1 | N\A |
74-
| 2.0.2 and above | 2019.4.26f1c1 ~ 2019.4.29f1c1 | N\A |
74+
| 2.0.3 | 2019.4.26f1c1 ~ 2019.4.29f1c1 | N\A |
75+
| 2.0.4 and above | 2019.4.26f1c1 ~ 2019.4.29f1c1 | 2020.3.24f1c2 and above |
7576

7677
#### UIWidgets Package
7778
Visit our Github repository https://github.com/Unity-Technologies/com.unity.uiwidgets
@@ -93,7 +94,7 @@ Finally, in PackageManger of unity, select add local file. select ```package.jso
9394

9495
#### Runtime Environment
9596

96-
:warning: Though UIWidgets 1.0 is compatible to all platforms, currently **UIWidgets 2.0** only supports MacOS(Metal), iOS(Metal), Android(OpenGLes) and Windows(Direct3D11). More devices will be supported in the future.
97+
:warning: Though UIWidgets 1.0 is compatible to all platforms, currently **UIWidgets 2.0** only supports MacOS(Intel64, Metal), iOS(Metal), Android(OpenGLes) and Windows(Direct3D11). More devices will be supported in the future.
9798

9899
## Getting Start
99100

@@ -295,7 +296,11 @@ this [section](#unity).
295296
296297
In UIWidgets 2.0, we wrapped the flutter engine inside a native library which is writen in C++ and used it to render on Unity Textures. Its rendering result is the same as in flutter and the performance is also better. However, in order to ensure that the flutter engine works properly along with Unity, we modified both the flutter and Unity Engine. As the result, currently UIWidgets 2.0 can only run on specific Unity versions, i.e., Unity China version and supports only part of the build targets of Unity.
297298
298-
For better rendering result, performance and continuous upgrade and support, you are always suggested to use UIWidgets 2.0 for your project. Use UIWidgets 1.0 only if you need to support specific target platforms like webgl.
299+
For better rendering result, performance and continuous upgrade and support, you are always suggested to use UIWidgets 2.0 for your project. Use UIWidgets 1.0 only if you need to support specific target platforms like webgl.
300+
301+
4. I encountered with a link error with OpenGLES for iOS build using UIWidgets 2.0 with Unity 2020.3LTS.
302+
303+
This is caused by Unity because it removed the dependency on OpenGLES library on Unity 2020.3. To fix this issue, please open the XCode project and manually add the OpenGLES library to the UnityFramework target.
299304
300305
## How to Contribute
301306

0 commit comments

Comments
 (0)