Unity technical documentation Version 1.0.0

Full Body Avatar

Networked full-body avatars for Unity’s VR Multiplayer template (XR Interaction Toolkit and Netcode for GameObjects). Each player picks a humanoid in front of a mirror, and everyone else in the session sees that body driven by head and hand tracking through Animation Rigging.

com.themetrics.full-body-avatar · Unity 6000.4 or newer

What it does

  • Full-body IK from the headset and controllers or hand tracking: arms, spine, legs, and fingers.
  • Ten ready-to-use humanoids: Male_00 through Male_06 and Female_00 through Female_02, plus a catalog you can extend.
  • A selection canvas with a live preview and a real-time mirror.
  • The avatar choice is replicated over Netcode for GameObjects, including distributed-authority sessions.
  • The local head is hidden in the headset (layer InvisibleForLocalPlayer) while the mirror still shows it.
  • Automatic height calibration so the avatar matches the player’s eye height.
  • Automatic setup on import, plus menu items to run each step again.
  • On Meta Quest, the included humanoids use 1024 px ASTC 6×6 textures.
  • A ready demo scene: Demo/Scenes/FullBodyAvatarDemo. Import leaves your own scenes untouched.

The Netcode integration compiles only when the VR Multiplayer template is present (THEMETRICS_VRMP). The core package compiles in any project.

Requirements

Full Body Avatar requirements
Unity 6000.4 or newer. Tested on 6000.4.9f1.
Template VR Multiplayer.
Packages Netcode for GameObjects 2.x, XR Interaction Toolkit 3.x, XR Hands, Input System, and Animation Rigging 1.3. The manifest pins com.unity.netcode.gameobjects 2.11.2, com.unity.xr.interaction.toolkit 3.4.1, com.unity.xr.hands 1.7.3, com.unity.inputsystem 1.19.0, and com.unity.animation.rigging 1.3.0.
XRI samples Starter Assets and Spatial Keyboard, included in the template.
Platforms Meta Quest (Android) and PC VR with OpenXR.

If Animation Rigging is missing, install it from Tools → TheMetrics → Full Body Avatar → Install Dependencies.

Tutorial: first session

  1. Create the project

    In Unity Hub, create a project from the VR Multiplayer template on Unity 6000.4 or newer.

  2. Import the package

    Import TheMetrics Full Body Avatar. On the first domain reload the package recognizes the template and prepares the network player for the avatar.

  3. Open the demo

    Open Demo/Scenes/FullBodyAvatarDemo. That scene already includes the selection canvas, the mirror, and the preview.

  4. Pick an avatar and join the session

    Press Play. On the Selecciona tu avatar canvas, move through the humanoids with Anterior and Siguiente, or use Aleatorio. Then enter with Host or Join.

  5. Check the body

    The avatar follows the head and hands. Inside the headset you do not see your own head; the mirror does. Another client in the same session sees the humanoid you picked.

What import sets up

On the first domain reload, if it detects the VR Multiplayer template, the package:

  1. Enables the THEMETRICS_VRMP scripting define.
  2. Creates the InvisibleForLocalPlayer layer.
  3. Adds Full Body Avatar and the NGO sync to the XRI_Network_Player_Avatar prefab.
  4. Hides the head and hand meshes that ship with the template.

Use the avatar in your scene

Your scenes are not changed on their own. To place the canvas in the open scene, or to run a step again, use Tools → TheMetrics → Full Body Avatar → NGO:

  1. Wire Full Body Avatar Onto Network Player Prefab

    Wires the avatar and the NGO sync onto the template’s network player prefab again.

  2. Add Avatar Selection UI To Open Scene

    Places the selection canvas, the mirror, and the preview in the scene you have open.

  3. Open Demo Scene

    Opens Demo/Scenes/FullBodyAvatarDemo so you can compare it with the reference scene.

  4. Ensure InvisibleForLocalPlayer Layer

    Creates the layer if it is missing and keeps it out of the XR camera mask.

If the NGO menu is missing, the template was not detected. Run Tools → TheMetrics → Full Body Avatar → Refresh VR Multiplayer Template Detection.

Components

Full Body Avatar components and what they do
Component Role
FullBodyAvatar Instantiates the catalog humanoid you picked and builds its IK rig.
FullBodyAvatarIK Head, arm, spine, and leg IK, plus height calibration.
FullBodyAvatarCatalog The list of selectable humanoids and their preview images.
FullBodyAvatarSelectionUI The selection canvas. It saves the choice and publishes it on the network.
FullBodyMirrorCamera A real-time mirror for the selection area.
NgoNetworkPlayerTrackingSource Feeds IK from the template’s XRINetworkPlayer head and hands.
FullBodyNgoAvatarSync Replicates the chosen avatar over Netcode for GameObjects.

Add your own humanoids

  1. Import the FBX

    Place the model in Assets/TheMetrics/Humanoids/<Name>/.

  2. Set up the rig

    In the model import settings, Rig → Animation Type: Humanoid. Enable Read/Write. That is required to split the local player’s head mesh.

  3. Update the catalog

    Select Content/FullBodyAvatarCatalog.asset. In the inspector, click Update Catalog and generate the previews.

Common problems

The NGO menu does not appear

The VR Multiplayer template was not detected. Run Tools → TheMetrics → Full Body Avatar → Refresh VR Multiplayer Template Detection.

I can see my own head inside the headset

Make sure the InvisibleForLocalPlayer layer exists and is excluded from the XR camera culling mask. The mirror should still render that layer.

The canvas thumbnails are empty

Select Content/FullBodyAvatarCatalog.asset and regenerate the previews.

Other players still see the template’s purple avatar

Run the first NGO menu step again: Wire Full Body Avatar Onto Network Player Prefab.

Back to Unity development