How to Build the Software
[!SUMMARY] This page explains how to:
- Build the project for various target platforms, including
- Windows
- Meta Quest
- WebGL
- Linux Dedicated Server
Important
Anywhere Academy uses Unity's build profiles to manage the build settings for individual platforms.
To learn more about build profiles, see Unity's documentation: https://docs.unity3d.com/6000.3/Documentation/Manual/build-profiles.html
This guide contains a step by step guide to build for every targeted platform.
Before building any version of the software, check if the scene list is set up properly.
- Open Build Profiles Page (File → Build Profiles)
- Find and verify the Scene List
How to Build for Windows
- Open Project Settings (Edit → Project Settings)
- Navigate to the XR Plug-in Management tab
- Verify that the settings are setup proper for you
- Open Build Profiles Page (File → Build Profiles)
- Find the
Windows (VR & NonVR)Build Profile - Adjust player settings as needed
- Version Number
- Graphics API
- etc.
- Hit
Switch PlatformorBuild
How to Build for Meta Quest
Building for Meta Quest Series is similar to building for Windows. Since Meta Quest uses an Android based OS, the Meta Quest (VR) Build Profile is based on Android settings. Therefore, we need to keep track of the bundle identifier in addition to versioning settings.
- Open Project Settings (Edit → Project Settings)
- Navigate to the XR Plug-in Management tab
- Verify that the settings are setup proper for you
- Open Build Profiles Page (File → Build Profiles)
- Find the
Meta Quest (VR)Build Profile - Adjust player settings as needed
- Version Number
- Bundle Identifier
- Graphics API
- etc.
- Hit
Switch PlatformorBuild
Note
Anywhere Academy uses the following mapping between version number and bundle identifier to avoid confusion:
Version $X.Y.Z$ becomes bundle identifier $X \cdot 10000 + Y \cdot 100 + Z$.
Example Version 2.5.17 becomes bundle identifier 20517.
How to Build for WebGL
Unity allows to optimize either build time or performance when building for WebGL. As WebGL should run on devices without GPU and older devices, the web version of Anywhere Academy is optimized for performance. To allow efficient development iteration, there are two build profiles for WebGL in the project: Web (NonVR) and Web Productive (NonVR), with the former being optimized for build time, the latter for performance. Use them as you like.
Caution
The WebGL Build profiles use individual player settings. This requires additional consideration with version numbers and other settings that need to be copied from the global player settings.
- Open Build Profiles Page (File → Build Profiles)
- Find the correct WebGL Build Profile
- Adjust player settings as needed
- Version Number
- etc.
- Hit
Switch PlatformorBuild
How to Build a Dedicated Linux Server
Anywhere Academy uses a headless dedicated Linux server for its multiuser functionalities. Most scenes will not work without being connected to a server.
- Open Build Profiles Page (File → Build Profiles)
- Find the
Linux ServerBuild Profile - Adjust global player settings as needed
- Version Number
- etc.
- Hit
Switch PlatformorBuild