# Unity > Getting started

Source: https://docs.manus-meta.com/3.2.1/Plugins/Unity/getting%20started/

> **Warning: License requirement**
>
> The functionality described requires a `MANUS Bodypack` or a `MANUS license key` with the `Unity` feature enabled.

This guide will help you install and set up our Unity plugin.

> **Note**
>
> The Unity plugin supports the following versions of Unity, `Unity 6, 2022.3 2021.3 2020.3`. This does not mean it won't work on older (or newer) versions but your milage may vary.

## Installing plugin

1. Go to the [Downloads page](https://docs.manus-meta.com/3.2.1/Resources/index.md).
2. Download the plugin as a zipped file and save it on your computer. Unzip the file to extract its contents.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-18.png)
3. Open your intended Unity project.
4. In Unity Editor, go to `Assets` > `Import Package` > `Custom Package`.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-2.png)
5. Locate the package file you downloaded and select it.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-3.png)
6. Click `Import` to start the process.
7. Once the import is complete, the assets from the package will be available in your project.

## Setting up

1. Locate the `Communication Hub` under the `Manus` tab in the toolbar. This is where you can manage the MANUS Core connection settings.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-4.png)
2. Within the Communication Hub, the plugin is set to automatically connect to MANUS Core instances running on the same machine (locally).

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-5.png)
3. If you want the plugin to search for hosts on the local network, make sure the `Connect locally only` option is disabled.
4. To connect automatically to the first host found, ensure that the `Connect Automatically` option is enabled.
5. If you want to update the list of available MANUS Core hosts, click on the `Get Available Hosts` button. This will provide you with a list of available hosts.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-6.png)
6. Select the desired MANUS Core host and click on `Connect`, The status should now say `Connected To (Name of your host)`.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-7.png)
7. The connection settings will be carried over to a build of your project.

   > **Warning**
   >
   > When not using `Connect Automatically` make sure your application has some logic in place to handle the connection.
8. After connecting to a host, if the `Connect Automatically` option is enabled, the plugin will attempt to automatically connect to that previously used host the next time you launch your project.

## Setting up a model to animate

Hand/full body models need to be set up in a specific manner to allow for animation through MANUS Core. The guide below guides you through the steps needed to define the model. Added reading on our [Skeleton](https://docs.manus-meta.com/3.2.1/Software/Skeletons/index.md) system and [DevTools](https://docs.manus-meta.com/3.2.1/Software/DevTools/index.md) can be found in their respective articles.

1. Import the model you want to animate into your Unity project. If it's a full body skeleton, make sure it's a Humanoid Biped model.
2. Place the model within the scene.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-8.png)
3. Select the root of the model's game object and add the Skeleton script as a new component. You can find it under `Manus/Skeletons` or by searching for `Skeleton` in the component menu.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-9.png)
4. Press the `Setup nodes` button. This function will automatically find all the transforms under the model, convert them into [nodes](https://docs.manus-meta.com/3.2.1/Software/Skeletons/index.md#nodes), and set up their settings.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-10.png)
5. ‍‍Set the `Skeleton Type` option to the appropriate type based on what you intend to animate using MANUS Core:

   - For just the hands, set it to `Hand`.
   - For a full body model (including hands), set it to `Both`.
   - For a body-only model (without hands), set it to `Body`.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-11.png)
6. Press the `Send skeleton to tool` button to send the skeleton nodes to the MANUS DevTools application. This tool simplifies the chain creation process. Refer to our [DevTools](https://docs.manus-meta.com/3.2.1/Software/DevTools/index.md) article.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-12.png)

   > **Note**
   >
   > This button will open the DevTools on the device hosting the MANUS Core that your plugin is connected to.
7. In the DevTools application, `Auto Allocation` will try to automatically allocate the chains. This will attempt to automatically generate a chain setup. Verify that the auto allocation was effective using the [animation controls](https://docs.manus-meta.com/3.2.1/Software/DevTools/index.md#preview-animation), else adjust the assignment accordingly. Once satisfied send the modified skeleton back to Unity by clicking `Send to plugin`.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-13.png)  
   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-14.png)
8. In Unity, go to the Skeleton inspector and press `Load skeleton from tool` to load the modified skeleton sent from the DevTools.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-15.png)
9. Ensure that the `Hand Motion Type` is set correctly based on your desired tracking source:

   - `IMU` uses the gloves' orientation.
   - `Tracker` uses a tracker's orientation and position.
   - `Tracker_Rotation_Only` uses the tracker's orientation without its position.
   - `Auto` automatically uses tracker data if a tracker is installed; otherwise, it uses glove data.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-16.png)

It's generally recommended to use the `Auto` setting to allow for the most flexibility in tracking sources.

1. ‍‍Set the [Targeted Data](https://docs.manus-meta.com/3.2.1/Software/Skeletons/index.md#target-types) to specify the source the skeleton should get its animation data from:

   - `User Data`: Provide a User ID from the Manus Core Dashboard to animate the skeleton accordingly.
   - `User Index Data`: Specify the index of the user from the Manus Core Dashboard to animate this skeleton.
   - `Glove Data`: Provide the ID of the glove from the Manus Core Dashboard to animate this skeleton.

   ![](https://docs.manus-meta.com/3.2.1/Plugins/Unity/assets/Getting%20Started/image-17.png)
2. ‍‍After setting up the above parameters, the skeleton is now ready to be animated. When entering play mode, the skeleton should animate according to the chosen targeted data.

> **Note**
>
> Make sure you're no longer in the animation mode in the DevTools when reviewing the skeleton animation in Unity. The animation mode will override the skeleton's animation, this can also be used to your advantage to test the skeleton's animation inside Unity.

## Metaglove Pro Raw Sensor data

The plugin also supports the raw sensor data from the Metagloves Pro. The position of the sensors are relative to the magnetic coils inside the casing on the back of the hand. This means that the offsets from sensor to joints have to be taken into consideration when interpreting the data. See the diagram below for the exact positioning of the coils inside the casings. The sensor positions are measured from finger sensor coil relative to the main coil in the casing. For more information please refer to our [Raw Sensor Data](https://docs.manus-meta.com/3.2.1/Plugins/SDK/C%2B%2B/SDK%20Client/index.md#raw-sensor-data) article.

## Interaction framework

The plugin comes with an interaction framework that allows you to interact with objects in your scene using the gloves. The framework is designed to be flexible and easy to use. However might be limited in certain scenarios. The following [article](https://docs.manus-meta.com/3.2.1/Plugins/Unity/interaction%20framework/index.md) delves into how to set up the interaction framework.

> **Note**
>
> An alternative route is to use our [OpenXR API Layer](https://docs.manus-meta.com/3.2.1/Plugins/OpenXR/Getting%20Started/index.md) which allows for use with OpenXR compatible interaction frameworks such as the [Unity XR Interaction Toolkit](https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@3.2/manual/index.html).
