浏览代码

updata

/siyaoH-1.17-PlatformMessage
siyao 3 年前
当前提交
1b2fea28
共有 2 个文件被更改,包括 12 次插入11 次删除
  1. 10
      README-ZH.md
  2. 13
      README.md

10
README-ZH.md


通常,你可以在控制台(或终端)应用程序中输入下面的代码来完成这个操作:
```none
cd <YourProjectPath>/Packages
cd <YourPackagePath>
在unity的PackageManager中,选择添加添加local file。选中```/com.unity.uiwidgets```下的```package.json```。
对于windows,请用在```com.unity.uiwidgets/Runtime/Plugins/x86_64```下的 ```libEGL.dll, libEGL.dll.meta, libGLESv2.dll and libGLESv2.dll```替换eidtor中相应文件
对于windows,请用在```com.unity.uiwidgets/Runtime/Plugins/x86_64```下的 ```libEGL.dll, libGLESv2.dll```替换编辑器中中相应文件
## 入门指南

UIWidgets也支持Gif!
1. 假设你有一个loading1.gif文件,将其重命名为loading1.gif并复制到StreamingAssets文件夹。
1. 假设你有一个loading1.gif文件,复制到StreamingAssets文件夹。
2. 使用Image.file(“loading1.gif”)加载gif图像。
#### 六、在安卓上显示状态栏

## 调试UIWidgets应用程序
#### 如何在editor中切换debug/release模式?
在Editor顶部选择```UIWidgets->EnableDebug```
在编辑器菜单栏选择```UIWidgets->EnableDebug```
如果想在runtime选择是否debug,请修改文件```com.unity.uiwidgets/com.unity.uiwidgets/Runtime/foundation/debug.cs```中的```static bool debugEnableAtRuntimeInternal```

13
README.md


Generally, you can make it using a console (or terminal) application by just a few commands as below:
```none
cd <YourProjectPath>/Packages
cd <YourPackagePath>
for windows, please replace ```libEGL.dll, libEGL.dll.meta, libGLESv2.dll and libGLESv2.dll``` in Editor from ones in ```com.unity.uiwidgets/Runtime/Plugins/x86_64``
In PackageManger of unity, select add local file. select ```package.json``` under ```/com.unity.uiwidgets```
for windows, please replace ```libEGL.dll, libGLESv2.dll``` in Editor from ones in ```com.unity.uiwidgets/Runtime/Plugins/x86_64``
## Getting Start

2. Use Image.file("image1.png") to load the image.
UIWidgets supports Gif as well!
1. Suppose you have loading1.gif. and copy it to StreamingAssets folder.
1. Put your gif files in StreamingAssets folder. e.g. loading1.gif.
2. Use Image.asset("loading1.gif") to load the gif images.
#### Show Status Bar on Android

#### Image Import Setting
Please put images under StreamingAssets folder, and loading it by ```Image.file```.
Please put images under StreamingAssets folder, a and loading it using ```Image.file```.
How to switch debug/release mode in editor/runtime?
If you want to change different mode in runtime, please modify the file “com.unity.uiwidgets/com.unity.uiwidgets/Runtime/foundation/debug.cs” by making “static bool debugEnableAtRuntimeInternal” to true or false. Note that the value is set to false by default.

正在加载...
取消
保存