You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Most VRErrors that occur are only exposed to the developer as log messages. Some of the openvr_data methods return a boolean representing success, but these are usually eaten by the XRInterface and therefore the application has no opportunity to react to a failure.
Still being pretty new to Godot, I'm not sure if there are good examples of handling errors out there that would be best to follow, so I'm filing this to get a discussion going. I would at the very least like to see VRErrors bubbled directly up to the XRInterface in some way (maybe like a last_error, so it can be used even by functions that return another type?), but translating them to a more useful form is also fine by me if one exists.
This discussion was converted from issue #161 on November 04, 2025 00:08.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Most VRErrors that occur are only exposed to the developer as log messages. Some of the openvr_data methods return a boolean representing success, but these are usually eaten by the XRInterface and therefore the application has no opportunity to react to a failure.
Still being pretty new to Godot, I'm not sure if there are good examples of handling errors out there that would be best to follow, so I'm filing this to get a discussion going. I would at the very least like to see VRErrors bubbled directly up to the XRInterface in some way (maybe like a
last_error, so it can be used even by functions that return another type?), but translating them to a more useful form is also fine by me if one exists.Beta Was this translation helpful? Give feedback.
All reactions