update for 2.0.4
This commit is contained in:
Родитель
c01b710baa
Коммит
639a1a57db
|
@ -61,7 +61,8 @@ UIWidgets的各个版本所需的Unity版本如下表所示。您可以从[https
|
|||
| -----------------------------------------------| ------------------------- | ------------------------- |
|
||||
| 1.5.4 及以下 | 2019.4.10f1 及以上 | N\A |
|
||||
| 2.0.1 | 2019.4.26f1c1 | N\A |
|
||||
| 2.0.2 及以上 | 2019.4.26f1c1 ~ 2019.4.29f1c1 | N\A |
|
||||
| 2.0.3 | 2019.4.26f1c1 ~ 2019.4.29f1c1 | N\A |
|
||||
| 2.0.4及以上 | 2019.4.26f1c1 ~ 2019.4.29f1c1 | 2020.3.24f1c2 及以上 |
|
||||
|
||||
#### UIWidgets包
|
||||
|
||||
|
@ -83,7 +84,7 @@ UIWidgets的各个版本所需的Unity版本如下表所示。您可以从[https
|
|||
|
||||
#### 运行环境
|
||||
|
||||
**UIWidgets 2.0**目前暂时只支持MacOS(Metal),iOS(Metal),Android(Armv7,OpenGLes)以及 Windows(Direct3D11)。我们后续会针对更广泛的运行环境进行适配,敬请期待。与之相对的,UIWidgets 1.0目前支持所有Unity导出目标平台。
|
||||
**UIWidgets 2.0**目前暂时只支持MacOS(Intel64,Metal),iOS(Metal),Android(OpenGLes)以及 Windows(Direct3D11)。我们后续会针对更广泛的运行环境进行适配,敬请期待。与之相对的,UIWidgets 1.0目前支持所有Unity导出目标平台。
|
||||
|
||||
## 入门指南
|
||||
|
||||
|
@ -274,5 +275,9 @@ using(Isolate.getScope(the isolate of your App)) {
|
|||
|
||||
由于UIWidgets 2.0在效果和效率上的优势,因此推荐大家使用。仅当您需要在UIWidgets 2.0暂时不支持的平台(如webgl)上开发时才推荐使用UIWidgets 1.0。此外,由于人力原因,目前只有UIWidgets 2.0我们会持续更新。
|
||||
|
||||
4. 使用Unity 2020.3LTS打包UIWidgets 2.0的项目到iOS平台后Build失败,提示无法链接到OpenGLES库函数。
|
||||
|
||||
这是因为在Unity 2020.3版本中Unity导出的iOS项目默认不再包含对OpenGLES库的依赖,但UIWidgets 2.0需要依赖该库。为了解决这个问题,您需要手动用Xcode打开项目并为UnityFramework添加上对OpenGLES库的依赖。
|
||||
|
||||
## 如何贡献
|
||||
请查看[CONTRIBUTING.md](CONTRIBUTING.md)
|
||||
|
|
11
README.md
11
README.md
|
@ -71,7 +71,8 @@ Specifically, the compatible Unity versions for each UIWidgets release are liste
|
|||
| -----------------------------------------------| ------------------------- | ------------------------- |
|
||||
| 1.5.4 and below | 2019.4.10f1 and above | N\A |
|
||||
| 2.0.1 | 2019.4.26f1c1 | N\A |
|
||||
| 2.0.2 and above | 2019.4.26f1c1 ~ 2019.4.29f1c1 | N\A |
|
||||
| 2.0.3 | 2019.4.26f1c1 ~ 2019.4.29f1c1 | N\A |
|
||||
| 2.0.4 and above | 2019.4.26f1c1 ~ 2019.4.29f1c1 | 2020.3.24f1c2 and above |
|
||||
|
||||
#### UIWidgets Package
|
||||
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
|
|||
|
||||
#### Runtime Environment
|
||||
|
||||
: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.
|
||||
: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.
|
||||
|
||||
## Getting Start
|
||||
|
||||
|
@ -295,7 +296,11 @@ this [section](#unity).
|
|||
|
||||
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.
|
||||
|
||||
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.
|
||||
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.
|
||||
|
||||
4. I encountered with a link error with OpenGLES for iOS build using UIWidgets 2.0 with Unity 2020.3LTS.
|
||||
|
||||
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.
|
||||
|
||||
## How to Contribute
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче