unity发布安卓黑屏,集成到Android项目中的Unity(Vuforia)项目在启动时显示黑屏

使用Unity和Vuforia 7.0.47创建的AR应用,在Android项目中作为库集成时遇到启动黑屏问题。尽管能够检测到UnityPlayerActivity并启动Intent,但Unity启动后只显示启动画面,随后变为黑屏,而不是预期的AR摄像头画面。问题仅在项目作为库集成时发生。解决方案是将导出项目的VuforiaWrapper.aar文件添加到Android项目中,并在gradle中作为依赖项加入。
摘要由CSDN通过智能技术生成

My situation:

I created an Android app and an AR Unity app that makes use of Vuforia 7.0.47.

The Android app has lots of features, one of the features is the augmented reality made with Unity and Vuforia.

In order to easily include and later on replace the Unity project in the Android project, I exported the Unity app to an Android Studio project and made it a library. After that I added the .aar file inside my Android project.

All of this seems to be working as my Android project is able to detect the UnityPlayerActivity and is able to start an Intent.

I now use the following code (a normal Intent) to start the Unity app inside my Android application:

Intent intent = new Intent(this, UnityPlayerActivity.class);

startActivity(intent);

The problem I have:

Whenever The UnityPlayerActivity starts, you see the Unity splash scr

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值