Add a get_system_info method to XRInterface
This commit is contained in:
parent
550a779851
commit
e31c2e4277
14 changed files with 69 additions and 1 deletions
|
|
@ -372,6 +372,15 @@ void MobileVRInterface::uninitialize() {
|
|||
};
|
||||
};
|
||||
|
||||
Dictionary MobileVRInterface::get_system_info() {
|
||||
Dictionary dict;
|
||||
|
||||
dict[SNAME("XRRuntimeName")] = String("Godot mobile VR interface");
|
||||
dict[SNAME("XRRuntimeVersion")] = String("");
|
||||
|
||||
return dict;
|
||||
}
|
||||
|
||||
bool MobileVRInterface::supports_play_area_mode(XRInterface::PlayAreaMode p_mode) {
|
||||
// This interface has no positional tracking so fix this to 3DOF
|
||||
return p_mode == XR_PLAY_AREA_3DOF;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue