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

Commit 1276f96

Browse files
committed
minor fixes
1 parent 2315504 commit 1276f96

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

README-ZH.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ UIWidgets是Unity编辑器的一个插件包,可帮助开发人员通过Unity
77

88
UIWidgets主要来自[Flutter](https://github.com/flutter/flutter)。但UIWidgets通过使用强大的Unity引擎为开发人员提供了许多新功能,显著地改进他们开发的应用性能和工作流程。
99

10-
**UIWidgets 2.0**是UIWidgets的最新版本,它针对**中国版Unity**开发并主要着力于UI绘制相关的整体性能优化。经测试,UIWidgets 2.0在iPhone 6等部分机型上的帧率相对1.0版本可以取得**10%**左右的提升。
10+
**UIWidgets 2.0**是UIWidgets的最新版本,它针对**中国版Unity**开发并主要着力于UI绘制相关的整体性能优化。经测试,UIWidgets 2.0在iPhone 6等部分机型上的帧率相对1.0版本可以取得10%左右的提升。
1111

1212
如果因为各种原因您还需要使用UIWidgets 1.0,请在Releases中下载对应的包或者使用uiwidgets_1.0分支。
1313

@@ -258,7 +258,7 @@ using(Isolate.getScope(the isolate of your App)) {
258258

259259
2. 在打开一个UIWidgets 2.0项目后Unity控制台报错,报错信息为**DllNotFoundException: libUIWidgets**
260260

261-
请首先检查您的UIWidgets根目录下/Runtime/Plugins中下载好的适配各个平台的C++库文件是否完整。例如,Windows平台下的libUIWidgets.ll位于*X86_64*子目录下,Mac平台下的libUIWidgets.dylib位于*osx*目录下。
261+
请首先检查您的UIWidgets根目录下/Runtime/Plugins中适配各个平台的C++库文件是否完整。例如,Windows平台下的libUIWidgets.dll位于*X86_64*子目录下,Mac平台下的libUIWidgets.dylib位于*osx*目录下。
262262

263263
如果您发现库文件不存在或者文件大小不正常(<1MB),请确认您已经在您电脑上安装了**Git Large File Storage**,然后在UIWidgets根目录下执行如下指令:
264264
```
@@ -272,5 +272,7 @@ using(Isolate.getScope(the isolate of your App)) {
272272
273273
在UIWidgets 2.0中我们将一个flutter引擎嵌入到了C++动态库中,然后Unity通过调用这个动态库来进行渲染。因此,它的渲染结果与flutter完全一致,且性能比C#实现的渲染代码有明显提升。不过为了使flutter引擎和Unity可以正确协作,我们对flutter和Unity引擎都进行了一些修改。因此,目前UIWidgets 2.0只能够运行在包含上述修改的中国版Unity中,并且暂时只支持部分Unity的目标平台。
274274
275+
由于UIWidgets 2.0在效果和效率上的优势,因此推荐大家使用。仅当您需要在UIWidgets 2.0暂时不支持的平台(如webgl)上开发时才推荐使用UIWidgets 1.0。此外,由于人力原因,目前只有UIWidgets 2.0我们会持续更新。
276+
275277
## 如何贡献
276278
请查看[CONTRIBUTING.md](CONTRIBUTING.md)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,14 @@ this [section](#unity).
289289
git lfs pull
290290
```
291291
292-
3. What the difference between UIWidgets 2.0 and UIWidgets 1.0 ?
292+
3. What is the difference between UIWidgets 2.0 and UIWidgets 1.0 ?
293293
294294
In UIWidgets 1.0 we used Unity [Graphics API](https://docs.unity3d.com/ScriptReference/Graphics.html) for the rendering and all rendering codes are writen in C#. Therefore it is able to run freely on all platforms that Unity supports but relatively slow. The rendering result is also not exactly the same as in flutter due to the difference between the Unity rendering engine and flutter engine.
295295
296296
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.
297297
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+
298300
## How to Contribute
299301
300302
Check [CONTRIBUTING.md](CONTRIBUTING.md)

0 commit comments

Comments
 (0)