# WebView isn't rendering

**URL:** <https://forum.magicleap.cloud/t/webview-isnt-rendering/1857>\
**Category:** Unity Development\
**Tags:** development, unity, webview\
**Created:** [May 5, 2023, 3:47pm UTC](https://forum.magicleap.cloud/t/webview-isnt-rendering/1857 "2023-05-05T15:47:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![downsideupface](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@downsideupface](https://forum.magicleap.cloud/u/downsideupface)\
**Post date:** [May 5, 2023, 3:47pm UTC](https://forum.magicleap.cloud/t/webview-isnt-rendering/1857/1 "2023-05-05T15:47:28Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![downsideupface](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@downsideupface](https://forum.magicleap.cloud/u/downsideupface)\
**Post date:** [May 5, 2023, 4:10pm UTC](https://forum.magicleap.cloud/t/webview-isnt-rendering/1857/2 "2023-05-05T16:10:05Z")

</div>

I have a little update on this.  
Seems like those errors were not the problem.  
Magic Leap Sample project's web view renders without issues on the headset and simulator.  
However, in my project it doesn't.  
The project was created at the end of the march (not by me), and after comparing it to Magic Leap Sample project, I noticed that my project was missing a URP folder.  
I tried adding it to the project but it made no difference. I was still getting a glitched web view like this -

 ![ML_20230504_23.24.15](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/dfbac78d2123344e44c85b2b4cff0e670e95a0e2.jpeg)  
 ![ML_20230504_23.25.27](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/76207acd9af42813f3afa00e26f7a2425f0c2517.jpeg)

I tried to update to 1.6 and that broke ML scripts.  
Any idea what could be causing this, and is URP folder making a difference here?

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [May 7, 2023, 12:31am UTC](https://forum.magicleap.cloud/t/webview-isnt-rendering/1857/3 "2023-05-07T00:31:42Z")

</div>

I recommend upgrading your project to the latest version. If your project is based off of an older version of the Unity Example Project, then create a backup of the project and use the following steps to upgrade your project:

1. Remove the `MagicLeap` folder inside your `Assets` folder.

2. Remove the `com.magicleap.unity sdk` folder from your `/Packages/`

3. Add the latest Magic Leap SDK package using the steps below:

4. Finally, copy the `MagicLeap` folder from the latest version of the Magic Leap UnityExampleProject and paste it into the current project's `Assets` folder.

If the problem persists, make sure the Unity URP package has been installed via the Unity Package Manager window.

---

<div class="post-metadata">

**Author:** ![downsideupface](https://avatars.discourse-cdn.com/v4/letter/d/94ad74/32.png) [@downsideupface](https://forum.magicleap.cloud/u/downsideupface)\
**Post date:** [May 10, 2023, 6:14pm UTC](https://forum.magicleap.cloud/t/webview-isnt-rendering/1857/4 "2023-05-10T18:14:20Z")

</div>

Thank you very much!

---

<div class="post-metadata">

**Author:** ![GalLibba](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@GalLibba](https://forum.magicleap.cloud/u/GalLibba)\
**Post date:** [March 4, 2024, 5:38pm UTC](https://forum.magicleap.cloud/t/webview-isnt-rendering/1857/5 "2024-03-04T17:38:57Z")

</div>

Hello, i know it's an old post but I get the same error in the web view example scene as mentioned here.  
I have updated the magic leap sdk to version 2.0 and fetched the latest examples from the magic leap examples repository, i noticed that a lot of examples has been removed in the 2.0 release, including the web view.

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [March 6, 2024, 4:05pm UTC](https://forum.magicleap.cloud/t/webview-isnt-rendering/1857/6 "2024-03-06T16:05:45Z")

</div>

Please try using the Magic Leap 1.12.0 Unity Examples Project. Versions 2.0.0 Use the OpenXR Workflow and do not include any of the original MLAPIs

---

<div class="post-metadata">

**Author:** ![GalLibba](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@GalLibba](https://forum.magicleap.cloud/u/GalLibba)\
**Post date:** [March 6, 2024, 4:14pm UTC](https://forum.magicleap.cloud/t/webview-isnt-rendering/1857/7 "2024-03-06T16:14:29Z")

</div>

Hey @kbabilinski , thanks for the response!  
On 1.12 it works great on the ML2 glasses but on the app simulator I get the same error as the post author:  
DllNotFoundException: ml\_ycbcr\_renderer assembly: type: member:(null)

May be worth checking.

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [March 6, 2024, 4:17pm UTC](https://forum.magicleap.cloud/t/webview-isnt-rendering/1857/8 "2024-03-06T16:17:53Z")

</div>

Thank you for the information, the web view API is not supported in App Simulator . However, there are alternative solutions on the Unity Asset store that support both Standalone and Android Platforms

---

<div class="post-metadata">

**Author:** ![kbabilinski](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/kbabilinski/32/19_2.png) [@kbabilinski](https://forum.magicleap.cloud/u/kbabilinski)\
**Post date:** [March 25, 2024, 12:00pm UTC](https://forum.magicleap.cloud/t/webview-isnt-rendering/1857/9 "2024-03-25T12:00:53Z")

</div>

This topic was automatically closed after 11 days. New replies are no longer allowed.
