# Portal Rendering sample not working

**URL:** <https://forum.needle.tools/t/portal-rendering-sample-not-working/2363>\
**Category:** 🌵 Needle Engine\
**Tags:** question\
**Created:** [March 18, 2025, 7:55pm UTC](https://forum.needle.tools/t/portal-rendering-sample-not-working/2363 "2025-03-18T19:55:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ariel](https://forum.needle.tools/user_avatar/forum.needle.tools/ariel/32/3849_2.png) [@Ariel](https://forum.needle.tools/u/Ariel)\
**Post date:** [March 18, 2025, 7:55pm UTC](https://forum.needle.tools/t/portal-rendering-sample-not-working/2363/1 "2025-03-18T19:55:45Z")

</div>

Portal Rendering sample doesn’t seem to be working out of the box  
Using latest samples and needle packages

 ![image](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/2X/5/545ad7780513632ddd4fb5675ab6764d89532e58.jpeg)  
 ![image](https://europe1.discourse-cdn.com/flex006/uploads/needle1/original/2X/d/da7c2ec99a456892b73105d3fb18dba11f78870e.jpeg)

---

<div class="post-metadata">

**Author:** ![needle-assistant](https://forum.needle.tools/user_avatar/forum.needle.tools/needle-assistant/32/3415_2.png) [@needle-assistant](https://forum.needle.tools/u/needle-assistant)\
**Post date:** [March 18, 2025, 7:55pm UTC](https://forum.needle.tools/t/portal-rendering-sample-not-working/2363/2 "2025-03-18T19:55:48Z")

</div>

Hi! It seems you’re having issues with the Portal Rendering sample in Needle Engine. To troubleshoot effectively, consider checking the following points:

1. **Dependencies** : Ensure that you are using the right versions of Needle Engine and Unity. For instance, update to Needle Engine `3.22.6` or later and ensure your Unity version is `2021.3.9f1` or higher ([see the documentation](https://docs.needle.tools)).

2. **Sample Configuration** : Review the configuration of your sample as described in the [Portal Rendering README](https://raw.githubusercontent.com/needle-tools/needle-engine-samples/main/package/Runtime/Stencil%20Portals/README.md). This document often contains specific instructions on setup and potential known issues.

3. **Inspect the Console** : Look for any error messages in the console log when running the sample. This can provide insights into what might be failing.

4. **Testing in Different Browsers** : Sometimes WebXR implementation can behave differently across browsers. Try testing in Chrome, Firefox, or Edge to see if the issue persists.

5. **Debugging with URL Parameters** : Utilize debugging URL parameters. Adding `?console` to the URL can help you see logs and debug information which might be crucial in understanding why the portal rendering isn’t functioning properly .

If these steps don’t resolve your issue, please provide further details such as any error messages or your current setup configurations so I can assist you better!

_1 replies left_ - **[Get a PRO license](https://needle.tools/pricing)** for more AI replies.  
_thread\_T89SysVgUWgznxdzvKaZxYUW_  
_Reply to this message to continue the conversation_

---

<div class="post-metadata">

**Author:** ![Marcel\_Wiessler1](https://forum.needle.tools/user_avatar/forum.needle.tools/marcel_wiessler1/32/21_2.png) [@Marcel\_Wiessler1](https://forum.needle.tools/u/Marcel_Wiessler1)\
**Post date:** [March 19, 2025, 9:30am UTC](https://forum.needle.tools/t/portal-rendering-sample-not-working/2363/3 "2025-03-19T09:30:06Z")

</div>

Hi,

are you using URP in your project? The sample requires URP to be setup.

See the [sample readme](https://github.com/needle-tools/needle-engine-samples/blob/main/package/Runtime/Stencil%20Portals/README.md#important-notice)

If it doesn’t work with URP then please let me know! But your Unity screenshot suggests that your Unity project is missing setup steps.
