Unity Integration

Install our Unity plugin to import ShapesXR spaces into the Unity editor. This allows you to enhance your spaces with interactive elements, model replacements, particle systems, and more. However, please note that exporting spaces back to ShapesXR is currently not supported.

Installing the Unity Plugin

  1. Install Unity (go to the official Unity page and install Unity Hub by clicking the Download button). If you already have it installed, skip to the next step.

  2. Open the Unity Hub and click the “New Project” button.

  1. Choose the Editor Version (we recommend version 6), “Universal 3D” template, set the project name and location, and then click “Create project”.

  1. Go to Edit -> Project Settings -> Package Manager and add the following dependencies:

Alternatively, you can open the YOUR_PROJECT/Packages directory in the file manager, find the manifest.json file there, open it, add this block on top, before the “dependencies” line, and save changes:

"scopedRegistries": [
    {
      "name": "package.openupm.com",
      "url": "https://package.openupm.com",
      "scopes": [
        "com.neuecc.messagepack"
      ]
    }
  ],

Please note how it should look in the manifest.json file:

How it should look in the manifest.json file
  1. Open the YOUR_PROJECT/Packages directory in the file manager, and unpack the downloaded zip into it.

  1. Return to your Unity project and wait until the import process is complete and all scripts have finished compiling. Once done, the ShapesXR tab will appear in the main menu — your plugin is now ready to use.

Unity plugin usage

  1. Go to the ShapesXR tab and select Importer. The plugin window will open, and you can dock it anywhere you prefer — for example, next to the Inspector tab.

  1. In the ShapesXR Importer window, enter the code of the space you want to import (learn how to find the Space code here) in the input field, then click Import Space.

  1. If prompted by Unity during the first space import, please import the TMP Essentials package.

  1. After the space is imported, a new game object will appear in the scene, representing your space along with all its scenes and viewpoints.

  1. Select your space in the Hierarchy. In the Inspector tab, you’ll see the Space Descriptor script enabled. This script lets you view the space code, quickly cycle through scenes using a slider, and reimport your space. You can safely remove this component if you don’t need these functions.

  1. You can also expand the Settings panel in the Importer window to adjust the imported data storage directory, material import mode, and material mapper. The Material Mapper allows you to use your own shaders instead of the built-in ones. Open any material mapper asset in the Inspector to see how materials can be mapped if needed. URP and Built-in material mappers are included in the package by default.

GLB/GLTF formats support

You can import GLB/GLTF models from your space to Unity.

Add a name for shader property for your main texture

Join our Discord server to ask any questions regarding the Unity plugin and share your creativity with us. Or email us with any questions at [email protected].

Last updated