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?
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;
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