Coder Social home page Coder Social logo

danyow / connectappcn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from uiwidgets/connectappcn1

0.0 0.0 0.0 308.78 MB

A Unity Connect community app made with Unity UIWidgets.

Java 1.83% C# 86.53% Objective-C 9.31% Objective-C++ 1.94% ShaderLab 0.40%

connectappcn's Introduction

Unity Connect

Unity Connect

Unity Connect 社区移动端 App(基于 UIWidgets)。

English Version

预览(iOS & Android)

下载

          

让项目运行

获取源代码

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

在 Unity Editor 上运行

  1. 使用 Unity Editor(推荐 Editor 版本:Unity 2018.4.10f1 (LTS)Unity 2019.1.14f1 及以上。如果使用 Unity 2019.4.1f1 版本,可以切到 2019.4.1f1 分支)打开项目目录 ConnectAppCN/
  2. 在 Unity Editor 界面的 Project 选项卡中找到 Assets/ConnectApp/Main 文件目录。
  3. 双击 ConnectApp.unity 文件,可以预览项目的预载显示效果。
  4. 双击 ConnectAppPanel.cs 文件,以唤起代码编辑软件(例如:Rider)。
  5. 检查 manifest.json 文件 (ConnectAppCN\Packages\manifest.json) 中是否包含下列依赖,如有请删除后再重载 Unity Editor (由于这两个库与项目都依赖 UIWidgets 但依赖方式不同,导致冲突)
...
"com.unity.doc_zh": "xxx",
"com.unity.messenger": "xxx",
...
  1. 单击 播放按钮 后,在 Game 窗口查看项目运行效果。

如果项目运行时有 Game 窗口中显示 "No cameras rendering" 字样提示的话,可以在 Game 窗口左上角菜单中去除勾选 "Warn if No cameras rendering" 即可消除。

在 Android 上运行 (需要安装 Android Studio)

  1. 在顶部菜单找到 Flie -> Build Settings -> Switch Platform Android
  2. 然后在 Build Settings 弹框中勾选 Export Project 选项。然后点击 Export 按钮导出到你指定的文件夹内(例如:AndroidProject/)。
  3. 通过 Android Studio 打开安卓项目目录 <你的指定文件夹>/Unity Connect
  4. 进入到 Android Studio 后,你就可以在 Android 模拟器或者真机中运行项目了。

在 iOS 上运行 (需要安装 Xcode)

  1. 在顶部菜单找到 Flie -> Build Settings -> Switch Platform iOS
  2. 项目中默认的配置是运行在 iOS 真机。如果想在 iOS 模拟器中运行,需要进行如下设置。
    • 找到菜单中的 Edit -> Project Settings -> Player -> Other Settings
    • 取消选中 Auto Graphics API ,然后在 Graphics APIs 列表中添加 OpenGLES2OpenGLES3
    • Target SDK 选择 Simulator SDK
  3. Build Settings 弹窗中点击 Export 按钮导出到你指定的文件夹内(例如:iOSProject/)。
  4. 双击 Unity-iPhone.xcodeproj 文件打开项目。
  5. 如果在真机上运行可能需要修改 info.plistBundle identifier
  6. 如果在模拟器运行需要在 Editor 中进行 2. 中的步骤,然后导出项目。

有任何问题都可以在 Issues 中向我们提出来,我们会仔细阅读并尽快回复您。

connectappcn's People

Contributors

danyow avatar iizzaya avatar kgdev avatar luoxuguang avatar wglios avatar yczhangsjtu avatar zhuxingwei avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.