使用UIWebview的iOS应用程序中的AFrame VR体验



有没有办法将AFrame webVR体验打包到iOS应用商店应用程序中?使用UIWebView等?它能完全与";VR/纸板/加速度计";或者仅与用户";用手指触摸拖动360 3D场景";四处看看?

还是有各种波动的iOS/AppStore限制使其不可能或不切实际?

UIWebView已被弃用,您可以使用WKWebView来完成它,类似于以下内容:

webView = WKWebView(frame: .zero, configuration: WKWebViewConfiguration())
webView?.frame = containerView.bounds
webView?.autoresizingMask = [.flexibleWidth, .flexibleHeight]
webView?.scrollView.isScrollEnabled = true
webView?.configuration.requiresUserActionForMediaPlayback = false
webView?.configuration.allowsInlineMediaPlayback = true
webView?.configuration.preferences.javaScriptEnabled = true
webView?.configuration.preferences.javaScriptCanOpenWindowsAutomatically = true
webView?.navigationDelegate = self
webView?.uiDelegate = self

最新更新