- Home /
How do you change the dimensions of the Steam VR view on the mirror screen (URP)
i would like to change the viewport dimensions of the mirrored VR view on my second screen. XRSettings.gameViewRenderMode only lets me choose between a few modes but i would like to have more control over how the view gets displayed. i cant use a second camera because of the draw calls.
any help or nudge in a direction would be greatly appreciated. do i need to write a custom render feature? do i need to use Blit? or is there an option to adjust the mirrored screen size and fov?
Answer by rh_galaxy · Sep 24, 2020 at 03:40 PM
The settings are under Project Settings/Player/Resolution and Presentation/Default Screen Width/Height
But the resolution will be saved on exit and then be the new default the next time your app runs, so in order to make it stick you must do for example this
Screen.SetResolution(1280, 720, true);
The fov is set for the camera, but I don't think it can be set in VR view, it is fixed. I have this in non-VR mode since it acted wierd for me, don't know if its the same for others
//change fov if non VR since that default setting shows to wide fov
// and is not behaving reliably
if (!XRDevice.isPresent)
Camera.main.fieldOfView = 45.0f;
Do you know if there is a config file like this for just SteamVR? Whenever I play a game in SteamVR, is FOV is cropped and I cannot fix it :(.
Answer by BenFaust · Sep 24, 2020 at 05:04 PM
thank you for clearing that up. actually im trying to change the mirror view size inside of the fixed fullscreen game. i have an UI overlay for the spectator and i want to squish/move the mirror vr view to the side so it is not occluded by the overlay
Ah, sorry for missing that, then my answer wasn't worth much...
Your answer
Follow this Question
Related Questions
Render texture fullscreen on top of camera output 0 Answers
Copy result of pass to another pass of the same shader 1 Answer
Failed to initialize 3D rendering. 1 Answer
Rendering screenshots on EC2 linux results in 1x1 pixel images 0 Answers
BlackScreen on build Android VR, After LWRP install 1 Answer