使用Unity构建的Oculus Go VR应用程序中的Web浏览器 [英] Web Browser in Oculus Go VR application built with Unity

查看:269
本文介绍了使用Unity构建的Oculus Go VR应用程序中的Web浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试寻找在VR应用程序中使用网络浏览器的方法.基本上,目标是在面板中打开类似于 https://stackoverflow.com 的页面,并使其在oculus go控制器中可滚动.

I am currently trying to find a way for having a web browser in a VR application. Basically the goal is to open a page like https://stackoverflow.com in a panel and to have it scrollable through the oculus go controller.

我已经对实现这一目标的插件进行了一些研究,例如,但它们似乎都无法在oculus go上工作.

I already did some research on plugins for achieving this like this but none of them seems to work on the oculus go.

推荐答案

据我所知,最好的解决方案是

From what I could find, the best solution is this 3D browser plugin. It's not slow or buggy like the other options I tried and it just works by placing a prefab in your scene that you can click and scroll.

void CreateWebView(float width, float height, Vector3 position) {
    var prefab = WebViewPrefab.Instantiate(width, height);
    prefab.transform.position = position;
    prefab.transform.LookAt(Camera.main.transform);
    prefab.Initialized += (sender, args) => prefab.WebView.LoadUrl("https://stackoverflow.com");
}

这篇关于使用Unity构建的Oculus Go VR应用程序中的Web浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆