# 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:** 1\
**Showing post:** 4

<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)

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-invoke-ui-on-pc-screen-vr-spectator-and-not-on-vr-hmd/501459)._
