Build¶
If you choose to build the plugin yourself, first clone the repository.
After that, initialize the submodules by running:
Then run:
The required compilation parameters are:
- platform:
windows
,macos
,linux
orandroid
- target:
template_debug
ortemplate_release
For android, you also have to add: arch=arm64v8
and you only need to generate the template_release
since template_debug
is not used.
You can optionally add -j<cores>
to use a set number of cores to build this asset. For example: -j4
The files will be placed in: demo/addons/godot_oculus_platform/bin
Android Plugin¶
This plugin also requires an Android plugin to work with the Quest platform. To build the android plugin you have to navigate to tools/godotoculusplatform-android-plugin
and run:
On windows:
On linux:
Finally, you have to copy the files into place:
Source | Destination |
---|---|
demo/addons/godot_oculus_platform |
Your projet's addon folder |
tools/godotoculusplatform-android-plugin/godotoculusplatform-android-plugin/build/outputs/aar/godotoculusplatform-android-plugin-release.aar |
addons/godot_oculus_platform/android_plugin |
tools/godotoculusplatform-android-plugin/godotoculusplatform-android-plugin/build/outputs/aar/godotoculusplatform-android-plugin-debug.aar |
addons/godot_oculus_platform/android_plugin |
Note
Make sure to enable the Godot Oculus Platform
plugin in your Project Settings.