2) Save, Load and Delete Device Presets

Managing device presets is at the heart of XRBuildKit's workflow. This page explains how to save, load, and delete device presets directly from the Unity Editor, using the XRBuildKit menu.


Saving a New Device Preset

  1. Open the XR Device Presets Window

    • Go to: XRBuildKit → Settings → XR Device Presets

    Open 'XR Device Presets' window
  2. Enter a Name and Select Platform

    • In the "Save Current Settings" section, enter a device name (e.g., Quest2)

    • Select the target platform (Windows, Android, etc.)

    Save new preset UI
  3. Click "Save Device"

    • After confirming, your current Unity project settings and XR configuration are saved as a new preset.

    Presets are saved in a folder under your project root directory. (The project root is determined by: Directory.GetParent(Application.dataPath)!.FullName)

    • If a preset with the same name and platform already exists, you will be asked to confirm overwriting.


Deleting a Device Preset

  1. In the Preset List, Click "Delete"

    • Next to any preset, click the "Delete" button.

    • Confirm the deletion in the dialog.

    When deleted, the preset folder is removed from your project root directory.


Tips

  • You can manage as many device presets as needed—switch between them any time.

  • All presets are stored as folders directly under your project root directory, making them easy to track with version control.

  • If you do not wish to commit your device presets to version control, consider adding the XRBuildKit preset folder path to your .gitignore file.

Last updated