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

I suggest using RetainerBox and SpecatorScreenTexture.

Follow the steps:

  1. Wrap your widget tree with two RetainerBoxes one by one:
    image

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

  1. Create a material for the second retainer box:

image

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

  1. Then setup the spectator screen:

image

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

1 Like