简体   繁体   English

如何在Android Studio中使用oculus Mobile SDK?

[英]How can I use oculus Mobile SDK in Android Studio?

I have an application which is supported by Google Cardboard and runs great on Gear Vr. 我有一个Google Cardboard支持的应用程序,并且可以在Gear Vr上很好地运行。 Now instead of Cardboard I would like it to be supported by the oculus Mobile SDK but I have trouble integrating the SDK. 现在,我希望由oculus Mobile SDK代替Cardboard来支持它,但是在集成SDK时遇到了麻烦。 How can I do that? 我怎样才能做到这一点?

Without more details it's difficult know exactly what you have implemented but here are a couple of snippets from a tutorial on building a dual Cardboard-GearVR app that may or may not help, depending on your project: 没有更多细节,很难确切地知道您已经实现了什么,但是以下是有关构建双Cardboard-GearVR应用程序的教程中的一些片段,根据您的项目,该片段可能会或可能不会有帮助:

  1. Google Cardboard supports Unity 4 and Unity 5. Although Oculus' mobile SDK will technically work on Unity 5, you can't ship with it because bugs in the current version of Unity 5 cause memory leaks and other issues on the Gear VR hardware. Google Cardboard支持Unity 4和Unity5。尽管从技术上讲Oculus的移动SDK将在Unity 5上运行,但是您不能随带它,因为当前版本的Unity 5中的错误会导致内存泄漏和Gear VR硬件上的其他问题。

  2. You can install the Cardboard and Gear VR SDKs in a single Unity project with almost no problems. 您可以在一个Unity项目中安装Cardboard和Gear VR SDK,几乎没有问题。 The only conflict is they both overwrite the Android manifest in the plugin folder. 唯一的冲突是它们都覆盖了plugin文件夹中的Android清单。

There is some more information in the link. 链接中有更多信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM