Skip to content

Latest commit

 

History

History
62 lines (50 loc) · 4.14 KB

README_EN.md

File metadata and controls

62 lines (50 loc) · 4.14 KB

Unity Connect

Unity Connect

A Unity Connect community app made with Unity(Based on the UIWidgets)。

Preview(iOS & Android)

Download

          

Get started

Get repo

$ git clone https://github.com/UnityTech/ConnectAppCN.git
$ cd ConnectAppCN/
$ git submodule init
$ git submodule update

Running in Unity Editor

  1. Use Unity Editor (Unity 2018.4.10f1 (LTS) or Unity 2019.1.14f1 or above. If use Unity 2019.4.1f1, you can checkout 2019.4.1f1 branch) open the ConnectAppCN/.
  2. Find Assets/ConnectApp/Main folder in Project Tab.
  3. Double click the ConnectApp.unity for preview the project.
  4. Double click the ConnectAppPanel.cs evoke Rider for Edit Code.
  5. Check whether the following dependencies are included in the manifest.json file (ConnectAppCN\Packages\manifest.json). If so, please delete and then reload the Unity Editor (because these two libraries and projects depend on UIWidgets, but the dependencies are different, resulting in conflicts)
...
"com.unity.doc_zh": "xxx",
"com.unity.messenger": "xxx",
...
  1. Click the Play button and you will see the project running in the Game window. PS: if "Game" window show "No cameras rendering" Toast, You can click the menu in the upper right corner of the "Game" window and uncheck the "Warn if No cameras rendering" option to make it disappear.

Running in Android (need to install Android Studio)

  1. Unity Editor Menu Flie -> Build Settings -> Switch Platform Android.
  2. Build Settings -> Check Export Project. Then click the Export button at the bottom, export to the path you want (such as AndroidProject/).
  3. Open <your path>/Unity Connect the project file from Android Studio.
  4. You can run it on the Android Simulator or on the Android Device.

Running in iOS (need to install Xcode)

  1. Unity Editor Menu Flie -> Build Settings -> Switch Platform iOS.
  2. The default configuration in the project is to run in the iPhone Device, if you want to run in the iOS Simulator requires additional settings.
    1. Find Unity Editor Menu Edit -> Project Settings -> Player -> Other Settings.
    2. Uncheck the Auto Graphics API, add OpenGLES2 and OpenGLES3 to Graphics APIs.
    3. Target SDK select Simulator SDK.
  3. In Build Settings click the Export button at the bottom, export to the path you want (such as iOSProject/).
  4. Double click the Unity-iPhone.xcodeproj open project.
  5. If you are running in a iOS device, you may need to modify the Bundle identifier in info.plist.
  6. You can run it on the iOS Simulator(View 2.) or on the iOS Device.

Any questions can be raised in the issue, we will reply as soon as possible.