Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant find where a print massage is coming from in the console #149

Open
JK-MITC opened this issue Jul 28, 2023 · 0 comments
Open

Cant find where a print massage is coming from in the console #149

JK-MITC opened this issue Jul 28, 2023 · 0 comments

Comments

@JK-MITC
Copy link

JK-MITC commented Jul 28, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant