Giter VIP home page Giter VIP logo

connectappcn1'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 中向我们提出来,我们会仔细阅读并尽快回复您。

connectappcn1's People

Contributors

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

connectappcn1's Issues

为什么打包出Android会报错?

FileNotFoundException: Temp\gradleOut\build\outputs\apk\release\gradleOut-release.apk does not exist
System.IO.File.Move (System.String sourceFileName, System.String destFileName) (at :0)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <3c0b2fdf8ace4ae49f054e74ca773557>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:286)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

打开项目报错

unity:2018.4.6f1; Windows平台
下载完项目,导入UIWidgets,,刚开始有一些其他的错误,删除无用的包后就剩这一个错误
Assembly has reference to non-existent assembly 'Windows.UI.Input.Spatial' (Packages/com.unity.xr.legacyinputhelpers/Runtime/LegacyInputHelpers.asmdef)

滑动页面卡顿

用的最新版,为啥每次滑动页面都一卡一卡的,手机配置挺高的,后台程序都清空了,其他浏览器打开网页都没见会这样卡

手机:redmi 10x pro Android10

安卓真机白屏

华为H8真机,夜神模拟器。
Unity2018.4.0f1, Unity2018.4.10f1, Unity2019.3.3f1, Unity2019.3.4f1, 用以上版本测试了。
v1.5.4-preview.6以下是正常的,preview.7~12都白屏,只渲染了 RawImage。

另外在previwe.12测试有这样的问题。
void setAlias() 函数参数在不同平台不同。
namespace name 'AnimatedPositioned' could not be found。
'SliverFillRemaining' is inaccessible due to its protection level。

博主列表添加新的浏览模式

1. 效果预览




2. 目标页面入口

3. 贡献代码步骤

  1. fork 本项目到自己的仓库, clone 你自己fork 的仓库到本地
  2. 让项目能在 master 分支 (如果是 Unity Editor 版本高于 2019.2 的话,用 2019.4.1f1 分支) 上运行
  3. 从 master 切出一个新的分支,然后在新的分支上修改代码

4. 所需要的素材和数据

  1. 页面需要的 Icon 是 Icons.outline_carouselIcons.outline_list, 可以在 /Assets/ConnectApp/Constants/Visual.cs 中找到
  2. 页面涉及到的文件 /Assets/ConnectApp/Screens/BloggerScreen.cs
  3. 标注不完全的地方可以先自由发挥,后面会更新补全

Eorror

Assets\ConnectApp\Components\Swiper\TransformerPageView\TransformerPageView.cs(186,31): error CS0506: 'TransformerPageController.page': cannot override inherited member 'PageController.page' because it is not marked virtual, abstract, or override

Question: any info about Debuger.dll?

Assets/ConnectApp/Packages/Debuger.dll

Looks pretty easy and elegant to use, just want to know where this dll comes from?

Debuger.EnableLog = Config.enableDebug;
Debuger.LogError(message: error);

缺少依赖报错

gradle里也没有找到微信和播放器的依赖

我没有执行 git submodule update,连不上,我直接把 uiwidget 复制进package的,是因为这个么?

Uploading Dingtalk_20211129185027.jpg…

iOS: The name 'HttpUtility' does not exist in the current context

When set target to iOS, get the following errors:

Assets/ConnectApp/Plugins/WechatPlugin.cs(94,35): error CS0103: The name 'HttpUtility' does not exist in the current context
Assets/ConnectApp/Plugins/QRScanPlugin.cs(92,49): error CS0103: The name 'HttpUtility' does not exist in the current context
Assets/ConnectApp/Plugins/JPushPlugin.cs(205,31): error CS0103: The name 'HttpUtility' does not exist in the current context

OvershootCurve.transform(float)

Assets\ConnectApp\Components\LikeButton\Utils\LikeButtonModel.cs(56,31): error CS0506: 'OvershootCurve.transform(float)': cannot override inherited member 'Curve.transform(float)' because it is not marked virtual, abstract, or override

群聊上传图片功能需要加强

1.选择并上传图片到群聊,无法选择原图上传,点击查看图片很糊!
2.而且无法在相册中多选图片上传!

系统IOS13.5.1

App版本:2.0.7

error CS0234

Packages\com.unity.uiwidgets\Runtime\engine\input_utils.cs(3,19): error CS0234: The type or namespace name 'EventSystems' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
Packages\com.unity.uiwidgets\Runtime\engine\UIWidgetsPanel.cs(11,30): error CS0234: The type or namespace name 'UI' does not exist in the namespace 'UnityEngine' (are you missing an assembly reference?)
…………………………
Unity2019.2.21f1

安卓顶部StatusBar会遮挡App的UI内容

用的Unity 2019.4.17f1 (LTS)
ConnectAppCN用的2019.4.1f1的branch
能顺利打出安卓apk,在mumu模拟器和真机上运行,顶部的StatusBar会遮挡App,如附件截图所示
screenshot

请问是哪里还需要特别设置吗?

无法打开项目

添加项目到UnityHub后,无法打开项目
如下显示:
ConnectAppCN
Unity Version: Unavailable warning
collaborate Cloud Project

iOS 启动闪退

: symbol not found in flat namespace 'OBJC_CLASS$_MPVolumeView'

Multi language support

Hey guys, can you include the option to change the language to spanish, english, etc?

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.