This repository builds the AAR assets required for Godot 4 to export XR application to the Android devices.
You can build this asset after cloning by simply running:
./gradlew build
You can build this asset after cloning by simply running:
gradlew.bat build
It is possible to download compiled assets that have been released from releases. The latest official release will be made available in Godots asset library.
For work in progress builds you can check actions to download the
Due to the use of AARs you will need to use the custom build option in Godot.
Open your Godot XR project in Godot and open the Project
menu and select Install Android Build templates
.
This should create an android
folder in your project folder.
When downloading this asset from Godots asset library it should place the required files into android/plugins
.
If you've downloaded the zip file from the releases page, copy the files in aar/android/plugins
manually to android/plugins
in your project. You may need to create the plugins folder.
If you have build the asset from source, you need to create the android/plugins
folder and then copy the following files:
godotopenxrmeta.gdap
intoandroid/plugins
godotopenxrmeta\build\outputs\aar\godotopenxrmeta-release.aar
intoandroid/plugins/godotopenxrmeta
godotopenxrmeta\build\outputs\aar\godotopenxrmeta-debug.aar
intoandroid/plugins/godotopenxrmeta
Back in Godot open the Project
menu and select Export...
.
If it doesn't already exist create an Android export configuration by pressing Add...
and selecting Android
.
Tick the Use Custom Build
tickbox.
Now enable the loader you need to use. Do not select multiple loaders!
You can create multiple export templates, one for each loader.
The sources in this repository are licensed under MIT, see LICENSE
for more information.
Note that the Meta OpenXR loader has its own license.
This repository was created and maintained by Bastiaan "Mux213" Olij. The original setup for this plugin was created by Gergely Kis and Gabor Pal Korom at Migeran.
See CONTRIBUTORS.md for further contributions.