$ git clone --recurse-submodules https://github.com/UIWidgets/ConnectAppCN2.git
$ cd ConnectAppCN2/
$ git clone https://github.com/UIWidgets/ConnectAppCN2.git
$ cd ConnectAppCN2/
$ git submodule init
$ git submodule update
ConnectAppCN2/
。
Project
选项卡中找到
Assets/ConnectApp/Main
文件目录。
ConnectApp.unity
文件,可以预览项目的预载显示效果。
ConnectAppPanel.cs
文件,以唤起代码编辑软件(例如:
Rider
)。
播放按钮
后,在
Game
窗口查看项目运行效果。
如果项目运行时有
Game
窗口中显示 "No cameras rendering" 字样提示的话,可以在
Game
窗口左上角菜单中
去除
勾选 "Warn if No cameras rendering" 即可消除。
Flie
->
Build Settings
-> Switch Platform
Android
。
Build Settings
弹框中
勾选
Export Project
选项。然后点击
Export
按钮导出到你指定的文件夹内(例如:AndroidProject/)。
<你的指定文件夹>/Unity Connect
。
Flie
->
Build Settings
-> Switch Platform
iOS
。
Edit
->
Project Settings
->
Player
->
Other Settings
。
Auto Graphics API
,然后在
Graphics APIs
列表中添加
OpenGLES2
和
OpenGLES3
。
Target SDK
选择
Simulator SDK
。
Build Settings
弹窗中点击
Export
按钮导出到你指定的文件夹内(例如:iOSProject/)。
Unity-iPhone.xcodeproj
文件打开项目。
info.plist
中
Bundle identifier
。
Editor
中进行 2. 中的步骤,然后导出项目。