Created
May 23, 2023 09:04
-
-
Save demonixis/fc9d71c2389121cbc56d9e53ac079aef to your computer and use it in GitHub Desktop.
Enable XR in Godot 4 project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extends Node3D | |
var interface : XRInterface | |
func _ready() -> void | |
interface = XRServer.find_interface("OpenXR") | |
if interface and interface.is_initialized(): | |
get_viewport().use_xr = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment