Build Notes
For All Platforms Debug Notes
- Follow the startup project setup.
Edit > Project Settings > Player
: Create a meaningful Package Name likecom.companyname.appname
…Company Name
:companyname
(sample)Product Name
:appname
(sample)
Edit > Project Settings > Player > Graphics > Video
:Always Included Shaders
to include:Standard
Unlit/Color
glTF/PbrMetallicRoughness
glTF/PbrSpecularGlossiness
glTF/Unlit
Mobile Platforms Debug Notes
- Install a good device debug logging package to your project like LunarConsole.
Android Debug Notes
Tested on Android 10 (API 29).
Edit > Project Settings > Player > iOS > Identification
: Override default if desired:Package Name
:com.companyname.appname
(sample)
Edit > Project Settings > Player > Android > Other Settings > Identification
:Minimum API Level
: at least API 24 (for XR/ARCore).
Edit > Project Settings > Player > Android > Other Settings > Configuration:
:Api Compatibility Level
to:.NET 4.x
.Install Location
to:Automatic
orForce Internal
.Internet Access
to:Require
.Write Permission
to:Internal
.
Edit > Project Settings > Player > Android > Other Settings > Script Compilation
:Scripted Define Symbols
to include:SSL
- Switch platform to
Android
andBuild and Run
the app to generate the proper Android app data files folder. - [Daily Temporary]: Switch platform to
PC, Mac & Linux Standalone
. - [Daily Temporary]: Click the
Play
button to update the MQTT Token for the desktop. - [Daily Temporary]: Either…
- Run the bash script
./Tests/Auth/android-add-auth.sh com.companyname.appname
to copy the desktop MQTT auth token to the Android app file storage. - Use
Windows Explorer
orMacOS Android File Transfer
to copy the file.arena_mqtt_auth
from desktop path~/.arena/unity/arenaxr.org/s/.arena_mqtt_auth
to device path/storage/emulated/0/Android/data/com.companyname.appname/files/.arena_mqtt_auth
.
- Run the bash script
- Switch platform to
Android
andBuild and Run
the app. - The library will use a local file if it exists for auth at:
/storage/emulated/0/Android/data/com.companyname.appname/files/.arena_mqtt_auth
. - [Eventually]: To use the default Android-only auth flow, remove this local token from the device with
./Tests/Auth/android-remove-auth.sh com.companyname.appname
.
iOS Debug Notes
Tested on iOS 15. NOTE: iOS builds are currently non-functional at runtime due to use of dynamic
objects as they won’t cross-compile. Status: https://github.com/arenaxr/arena-unity/issues/22.
Edit > Project Settings > Player > iOS > Identification
: Override default if desired:Bundle Identifier
:com.companyname.appname
(sample)
Edit > Project Settings > Player > iOS > Other Settings > Configuration:
:Api Compatibility Level
to:.NET 4.x
.Camera Usage Description
: something likeUsing iOS camera for ARENA AR
.Target minimum iOS Version
: to11.0
.Requires ARKit support
: to Yes.
Edit > Project Settings > Player > iOS > Other Settings > Script Compilation
:Scripted Define Symbols
to include:SSL
- Switch platform to
iOS
andBuild and Run
the app to generate the proper iOS app data files folder. - [Daily Temporary]: Switch platform to
PC, Mac & Linux Standalone
. - [Daily Temporary]: Click the
Play
button to update the MQTT Token for the desktop. - [Daily Temporary]: Use
iTunes File Sharing
orWindows Explorer
orMacOS Finder
to copy the file.arena_mqtt_auth
from desktop path~/.arena/unity/arenaxr.org/s/.arena_mqtt_auth
to device pathappname/.arena_mqtt_auth
. - Switch platform to
iOS
andBuild and Run
the app. - The library will use a local file if it exists for auth at the iOS
appname
Files path:appname/.arena_mqtt_auth
. - [Eventually]: To use the default iOS-only auth flow, remove this local token from the device by using
Windows Explorer
orMacOS Finder
to delete this entire folderappname
from your device.