Unity-Technologies / com.unity.uiwidgets

UIWidgets is a Unity Package which helps developers to create, debug and deploy efficient, cross-platform Apps.
https://unity.cn/uiwidgets
627 stars 78 forks source link

使用UIWidgets插件的一些问题 #235

Open omnana opened 3 years ago

omnana commented 3 years ago

作者你好, 我最近在做一些可用性调研,计划使用uiwidget来实现一些uGUI不好实现的ui排版。 问题1.看到Plugin目录下的.a和 .so文件体积很大, 不知道这是否是release版本的库。 因为app要上谷歌平台,对包体体积大小有限制。 问题2.按照md文档描述,uiwidgets似乎不支持x86,如果自己编译uiwidgets_engine 是否可以自持x86平台

zhuxingwei commented 3 years ago

Hi, thanks for your questions !

(1) yes, the libraries are all release build. Currently, the library size is relatively big because the library contains a full flutter engine. We will investigate into this issue later and try to strip out some unnecessary parts from it. Btw, according to our experience on the ConnectApp project, since only the used parts of the library are linked into the final binaries when building your App, it won't affect your app size very much.

(2) Currently uiwidgets doesn't support x86 architecture for mobile devices so you cannot export a uiwidgets project for iOS/Android simulator. Yes, technically it is ok to add x86 support if you can figure out a proper building toolchain. However we have not tried this yet. It will be great If you can give it a try and we will try our best to help you make it done.

Looking forwards to your progress!