# How to invoke UI on PC screen(VR Spectator) and not on VR HMD?

**URL:** <https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459>\
**Category:** Blueprint\
**Tags:** Virtual-Reality, oculus-vr, unreal-engine, UE5-0, UI, Blueprint\
**Created:** [February 23, 2022, 4:31pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459 "2022-02-23T16:31:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_7ff85ec3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7ff85ec3](https://forums.unrealengine.com/u/anonymous_user_7ff85ec3)\
**Post date:** [February 23, 2022, 4:31pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/1 "2022-02-23T16:31:03Z")

</div>

Hi,  
I am working on a VR project, my current problem is how to show a ‘Settings’ UI on PC screen alone while someone else is using VR HMD at the same time. A second person should be able to change settings in the PC screen, while that UI is not rendered for the VR HMD user. So far I tried Spectator following this [livestream](https://www.youtube.com/watch?v=0up1Lgmw-Lg), is there a way to invoke UI in VR Spectator alone?

Currently I can show the UI when HMD is not connected:

 ![Screenshot (55)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/b/f/5bf2839c582958108b18835b1a7722ec4123a6a6.png)

---

<div class="post-metadata">

**Author:** ![Luca\_Bagetto](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Luca\_Bagetto](https://forums.unrealengine.com/u/Luca_Bagetto)\
**Post date:** [March 28, 2023, 1:23am UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/2 "2023-03-28T01:23:05Z")

</div>

Hi, have you find a solution for this? I need to do almost the same thing

---

<div class="post-metadata">

**Author:** ![schmigel](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@schmigel](https://forums.unrealengine.com/u/schmigel)\
**Post date:** [February 7, 2024, 7:11pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/3 "2024-02-07T19:11:17Z")

</div>

I have a project in VR coming and I’m wondering the same thing.  
Maybe this plugin can help? I’ve used it before. But I’m not sure it would work with VR

> **[MultiWidget in Code Plugins - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/multiwidget)**
>
> MultiWidget - allows you to easily and quickly assign your widgets and add them as a separate window.

---

<div class="post-metadata">

**Author:** ![Supremative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/supremative/32/906564_2.png) [@Supremative](https://forums.unrealengine.com/u/Supremative)\
**Post date:** [February 8, 2024, 9:44am UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/4 "2024-02-08T09:44:03Z")

</div>

I suggest using RetainerBox and SpecatorScreenTexture.

Follow the steps:

1. Wrap your widget tree with two RetainerBoxes one by one:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/4/3/f4320e20d943d1cd59f8e977ba76e96a62e00689.png)

The root RetainerBox makes your widget invisible, and the nested one writes the widget to Material that we use as a texture for SpectatorScreen.

1. Create a material for the root retainer box:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/b/81b9f883bce486b2a8c350176d71df53c4a7ecfb.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/7/f2720a769ff3f360bc98a9c74f9d81617539b7a2.png)

1. Create a material for the second retainer box:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/d/c/adc09af0583119962447c656fc21bfdd19b769ee.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/5/8651635e9ce5d2cb691ad91da020342d73325ffb.png)

1. Create a render target, assign it as a spectator texture, and refresh it every tick with the widget material:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/8/c48878ca39b7d339af0a8cd96a9c8e93db3ef733.png)

1. Then setup the spectator screen:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/5/7/9573faad4c457f6debd9afc6fda166915bf48ddf.png)

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/f/0/bf0752d8472393a8e861293bf023a36a29ae8a89.jpeg)

As a result, you have a widget invisible to VR, but you can see it on your monitor screen and interact with it.

[My Products](https://www.unrealengine.com/marketplace/en-US/profile/Aleksandr+Sidorov)

---

<div class="post-metadata">

**Author:** ![Dan.Smith2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan.Smith2](https://forums.unrealengine.com/u/Dan.Smith2)\
**Post date:** [February 21, 2024, 4:02pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/5 "2024-02-21T16:02:00Z")

</div>

Hey mate, I’m just giving this a try. This may be a really stupid question, but i dont seem to be able to divide these two?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/e/b/6eb27f059d6aeaf5bf512bb55cebef65b91ad093.jpeg)

---

<div class="post-metadata">

**Author:** ![Supremative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/supremative/32/906564_2.png) [@Supremative](https://forums.unrealengine.com/u/Supremative)\
**Post date:** [February 21, 2024, 4:08pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/6 "2024-02-21T16:08:42Z")

</div>

Disable this:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/d/9ed4e99e920122a42d28db0517ad81ae14c48042.png)

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/3/d53b9ded937b0137090678414b9fa3138a0d03db.png)

---

<div class="post-metadata">

**Author:** ![Dan.Smith2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan.Smith2](https://forums.unrealengine.com/u/Dan.Smith2)\
**Post date:** [February 21, 2024, 4:59pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/7 "2024-02-21T16:59:13Z")

</div>

That’s great mate, thanks for the quick response. Everything seems to be working, but its just displaying very small on screen, do you know why that may be?

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/9/0/c90dfa0ec07ee209f5464d2f1ff0508ed1afab03.jpeg)

---

<div class="post-metadata">

**Author:** ![Supremative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/supremative/32/906564_2.png) [@Supremative](https://forums.unrealengine.com/u/Supremative)\
**Post date:** [February 21, 2024, 5:20pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/8 "2024-02-21T17:20:03Z")

</div>

The widget is displayed exactly as it is.

---

<div class="post-metadata">

**Author:** ![Dan.Smith2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan.Smith2](https://forums.unrealengine.com/u/Dan.Smith2)\
**Post date:** [February 21, 2024, 5:54pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/9 "2024-02-21T17:54:09Z")

</div>

Sorry, I don’t follow what you mean?

---

<div class="post-metadata">

**Author:** ![Supremative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/supremative/32/906564_2.png) [@Supremative](https://forums.unrealengine.com/u/Supremative)\
**Post date:** [February 21, 2024, 7:00pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/10 "2024-02-21T19:00:24Z")

</div>

I mean, your widget is small.

---

<div class="post-metadata">

**Author:** ![Dan.Smith2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan.Smith2](https://forums.unrealengine.com/u/Dan.Smith2)\
**Post date:** [February 22, 2024, 8:53am UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/11 "2024-02-22T08:53:35Z")

</div>

Hey man, I really appreciate the help on this, but no matter how much I scale the widget canvas, it still displays at this size. is there a scaling option somewhere in the blueprint chain or something?

---

<div class="post-metadata">

**Author:** ![Supremative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/supremative/32/906564_2.png) [@Supremative](https://forums.unrealengine.com/u/Supremative)\
**Post date:** [February 22, 2024, 9:15am UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/12 "2024-02-22T09:15:57Z")

</div>

Show your widget tree, please.

---

<div class="post-metadata">

**Author:** ![Dan.Smith2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan.Smith2](https://forums.unrealengine.com/u/Dan.Smith2)\
**Post date:** [February 22, 2024, 8:57pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/13 "2024-02-22T20:57:55Z")

</div>

Sure, here:

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/1/8c1a5bce964cff818bb34d50843c9caef92dad05.png)

---

<div class="post-metadata">

**Author:** ![Supremative](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/supremative/32/906564_2.png) [@Supremative](https://forums.unrealengine.com/u/Supremative)\
**Post date:** [February 22, 2024, 9:16pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/14 "2024-02-22T21:16:22Z")

</div>

My example assets:  
[Spectatorwidget.zip](https://forums.unrealengine.com/uploads/short-url/cB4KkIiXMoQNNhoOLNDWb8EXLKw.zip) (776.2 KB)

Extract into ‘Content’.

---

<div class="post-metadata">

**Author:** ![Dan.Smith2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dan.Smith2](https://forums.unrealengine.com/u/Dan.Smith2)\
**Post date:** [February 23, 2024, 2:16pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/15 "2024-02-23T14:16:18Z")

</div>

Your file is working perfectly, thanks mate!!!

---

<div class="post-metadata">

**Author:** ![Feteha98](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/feteha98/32/88716_2.png) [@Feteha98](https://forums.unrealengine.com/u/Feteha98)\
**Post date:** [March 2, 2024, 8:17pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/16 "2024-03-02T20:17:57Z")

</div>

I have a problem with this approach. The button click is not aligned with the button. This happened in your files as well. Did anyone encounter this issue and figure out a workaround for this ?

---

<div class="post-metadata">

**Author:** ![yoponchik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yoponchik](https://forums.unrealengine.com/u/yoponchik)\
**Post date:** [March 14, 2024, 2:26am UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/17 "2024-03-14T02:26:30Z")

</div>

Yeah same problem here… Anyone manage to fix the misalignment?

---

<div class="post-metadata">

**Author:** ![axelhelief\_24420](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@axelhelief\_24420](https://forums.unrealengine.com/u/axelhelief_24420)\
**Post date:** [April 2, 2024, 8:13pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/18 "2024-04-02T20:13:31Z")

</div>

Hey there, been able to implement this solution successfully, truly grateful for this info.  
Two things come to mind :

- I’m trying to set up a system to show and hide the widget. As this is a render texture, Should I suppose that the best course of action is simply to change the Spectator screen mode? Or is there another way to clear the render target?
- What was this tested on? Getting good results on the index, but somebody tried on a Quest 3, without success.

Thanks!

---

<div class="post-metadata">

**Author:** ![joffph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joffph](https://forums.unrealengine.com/u/joffph)\
**Post date:** [April 10, 2024, 7:02pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/19 "2024-04-10T19:02:56Z")

</div>

I have this same issue too. After digging a little bit, it looks like since the widget is added to the pawn viewport, it gets the hmd resolution (4128x2272 in my case with quest 3) and not the spectator resolution (1920x1080). I’ve been playing with different resolutions and resizings but i can not make the visual part of the ui match the actual place where it happens for the moues… Somone knows more about this?

---

<div class="post-metadata">

**Author:** ![joffph](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joffph](https://forums.unrealengine.com/u/joffph)\
**Post date:** [April 11, 2024, 1:12pm UTC](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459/20 "2024-04-11T13:12:40Z")

</div>

To anyone still with problems with the mouse alignment i’ve found the solution in this other post: ([Mouse Interaction during stereoscopic rendering - #8 by RC-1290](https://forums.unrealengine.com/t/mouse-interaction-during-stereoscopic-rendering/505081/8))

Just follow instructions in comment from nov 2023 and it works.

Still not perfect as i have to test it better but at least you can create a interactive widget showing only in the spectator screen.

[Next page](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459.md?page=2)
