# I get an error when I run Hello Cube on the Unity Editor

**URL:** <https://forum.magicleap.cloud/t/i-get-an-error-when-i-run-hello-cube-on-the-unity-editor/877>\
**Category:** Unity Development\
**Tags:** development, unity, app-sim\
**Created:** [September 15, 2022, 3:15pm UTC](https://forum.magicleap.cloud/t/i-get-an-error-when-i-run-hello-cube-on-the-unity-editor/877 "2022-09-15T15:15:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)\
**Post date:** [September 15, 2022, 3:15pm UTC](https://forum.magicleap.cloud/t/i-get-an-error-when-i-run-hello-cube-on-the-unity-editor/877/1 "2022-09-15T15:15:29Z")

</div>

The following error occurred when I pressed the Play button in the Unity Editor while the Unity Editor was connected to the App Sim in the ML Hub, and it went into a paused state.

 ![WS000077](https://us1.discourse-cdn.com/flex019/uploads/magicleap1/original/1X/3c36216fe1ba4e6047cf91339f59764b5866a2ab.jpeg)

**Unity Editor version** : 2022.2.0.b8.3023  
**ML2 OS version** : -  
**MLSDK version** : 0.53.3  
**Magic Leap XR Plugin** : 7.0.0-exp.4 (The same error occurs in 7.0.0-exp.3.)  
**ML Hub** : 2.0.3.303308290538  
**Magic Leap Application Simulator Module** : 3.3.0.202208271911  
**Magic Leap Application Simulator Runtime** : 3.3.0.20220831

> NullReferenceException: Object reference not set to an instance of an object  
> UnityEngine.Experimental.Rendering.XRSystem.CreateDefaultLayout (UnityEngine.Camera camera) (at Library/PackageCache/com.unity.render-pipelines.core@14.0.3/Runtime/XR/XRSystem.cs:284)  
> UnityEngine.Experimental.Rendering.XRLayout.AddCamera (UnityEngine.Camera camera, System.Boolean enableXR) (at Library/PackageCache/com.unity.render-pipelines.core@14.0.3/Runtime/XR/XRLayout.cs:32)  
> UnityEngine.Rendering.Universal.UniversalRenderPipeline.RenderCameraStack (UnityEngine.Rendering.ScriptableRenderContext context, UnityEngine.Camera baseCamera) (at Library/PackageCache/com.unity.render-pipelines.universal@14.0.3/Runtime/UniversalRenderPipeline.cs:680)  
> UnityEngine.Rendering.Universal.UniversalRenderPipeline.Render (UnityEngine.Rendering.ScriptableRenderContext renderContext, System.Collections.Generic.List`1[T] cameras) (at Library/PackageCache/com.unity.render-pipelines.universal@14.0.3/Runtime/UniversalRenderPipeline.cs:306) UnityEngine.Rendering.RenderPipeline.InternalRender (UnityEngine.Rendering.ScriptableRenderContext context, System.Collections.Generic.List`1[T] cameras) (at :0)  
> UnityEngine.Rendering.RenderPipelineManager.DoRenderLoop\_Internal (UnityEngine.Rendering.RenderPipelineAsset pipe, System.IntPtr loopPtr, UnityEngine.Object renderRequest, Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle safety) (at :0)  
> UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

Thanks.  
[Sadao Tokuyama](https://www.linkedin.com/in/sadao-tokuyama/)

---

<div class="post-metadata">

**Author:** ![kvlasova](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kvlasova](https://forum.magicleap.cloud/u/kvlasova)\
**Post date:** [September 15, 2022, 4:57pm UTC](https://forum.magicleap.cloud/t/i-get-an-error-when-i-run-hello-cube-on-the-unity-editor/877/2 "2022-09-15T16:57:01Z")

</div>

Hi Sadao,

Just to confirm, did you set up Universal Render Pipeline for this project as described in the [setup guide](https://developer-docs.magicleap.cloud/docs/guides/unity/getting-started/configure-unity-settings#universal-render-pipeline)? Additionally, what machine OS are you running this on?

---

<div class="post-metadata">

**Author:** ![tokufxug](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.magicleap.cloud/tokufxug/32/172_2.png) [@tokufxug](https://forum.magicleap.cloud/u/tokufxug)\
**Post date:** [September 16, 2022, 1:26pm UTC](https://forum.magicleap.cloud/t/i-get-an-error-when-i-run-hello-cube-on-the-unity-editor/877/3 "2022-09-16T13:26:11Z")

</div>

Hi Kat,  
I thought I had configured URP, but when I reconfigured URP again, the error did not occur and it worked correctly.

Thanks.  
[Sadao Tokuyama](https://www.linkedin.com/in/sadao-tokuyama/)

---

<div class="post-metadata">

**Author:** ![kvlasova](https://avatars.discourse-cdn.com/v4/letter/k/f6c823/32.png) [@kvlasova](https://forum.magicleap.cloud/u/kvlasova)\
**Post date:** [September 22, 2022, 3:39pm UTC](https://forum.magicleap.cloud/t/i-get-an-error-when-i-run-hello-cube-on-the-unity-editor/877/4 "2022-09-22T15:39:45Z")

</div>

Closed on September 22, 2022, 3:39pm UTC


