This package currently has the following additional limitations when targeting the
RealityKit app mode due to limitations of Unity PolySpatial. I plan to address some of these limitations soon in future releases of this package. In the meantime, the recommended approach for RealityKit is to use
VisionOSWebView.CreateInWindow() to create a webview in a native visionOS window, which doesn't encounter these limitations.
- WebViewPrefab renders, but it's currently unable to automatically detect input (clicking and scrolling) through Unity's event system. I will be working to fix this limitation soon. In the meantime, the application can still trigger input programmatically by calling IWebView.Click() and Scroll(), or by overriding the prefab's IPointerInputDetector.
- WebViewPrefab doesn't support video playback with RealityKit because Unity PolySpatial doesn't support custom shaders, which are needed for 3D WebView's fallback video implementation.
- CanvasWebViewPrefab doesn't currently render because Unity PolySpatial doesn't support the RawImage component.