Hi!
I've been trying to implement ML's WebView for a few days now.
However, I always get a black screen. So, when I decided to run the ML Example Project scenes, I got the same result.
The console returns 2 warnings and 1 error related to what seems to be a rendering issue?
Unity Version: 2022.2.6f
ML2 OS: 1.2.0-dev2
MLSDK Version: 1.5.0
Host OS: Windows 11
Error messages from logs:
AR Foundation is installed, but there is an XROrigin and no ARCameraBackground component in WebView attached to the camera. Video pass-through will be disabled without this component.
UnityEditor.Build.BuildPipelineInterfaces:OnSceneProcess (UnityEngine.SceneManagement.Scene,UnityEditor.Build.Reporting.BuildReport)
AR Foundation is installed, but there is an XROrigin and no ARCameraManager component in WebView attached to the camera. Video pass-through will be disabled without this component.
UnityEditor.Build.BuildPipelineInterfaces:OnSceneProcess (UnityEngine.SceneManagement.Scene,UnityEditor.Build.Reporting.BuildReport)
DllNotFoundException: ml_ycbcr_renderer assembly: type: member:(null)
UnityEngine.XR.MagicLeap.YcbcrRenderer.Initialize (System.Boolean waitForQueueIdleOnSubmit) (at ./Library/PackageCache/com.magicleap.unitysdk@1.5.0/Runtime/APIs/NativeSurface/YcbcrRenderer.cs:83)
UnityEngine.XR.MagicLeap.MLWebView+Renderer..ctor () (at ./Library/PackageCache/com.magicleap.unitysdk@1.5.0/Runtime/APIs/WebView/API/MLWebViewYcbcrRenderer.cs:30)
MagicLeap.Core.MLWebViewScreenBehavior.CreateTexture (System.Int32 width, System.Int32 height) (at ./Library/PackageCache/com.magicleap.unitysdk@1.5.0/Runtime/APIs/WebView/Scripts/MLWebViewScreenBehavior.cs:451)
MagicLeap.Core.MLWebViewScreenBehavior.CreateWebViewWindow () (at ./Library/PackageCache/com.magicleap.unitysdk@1.5.0/Runtime/APIs/WebView/Scripts/MLWebViewScreenBehavior.cs:405)
MagicLeap.Examples.WebViewExample.CreateWebViewWindow () (at Assets/MagicLeap/Examples/Scripts/WebViewExample.cs:231)
MagicLeap.Examples.WebViewExample.Start () (at Assets/MagicLeap/Examples/Scripts/WebViewExample.cs:91)