Hi, I am switching between the VR 3Dcamera and a different free 3Dcamera. When doing so I've used the following code below. When doing this i get the error "OpenXR: No viewport was marked with use_xr, there is no rendered output!". Since this is not a problem I want to remove the print function that spamming my console. Also now that i got your attention, is there a better way to swtich betweena VR camera and a Freecam?
func _input(event):
if event.is_action_pressed("SwitchCamera"):
print("swtich Cam")
match VRCamera.is_current():
true:
get_viewport().use_xr = false
VRCamera.set_current(false)
eCamera.set_current(true)
false:
get_viewport().use_xr = true
VRCamera.set_current(true)
eCamera.set_current(false)
pass