Skip to content

This repository provides a comprehensive sample project showcasing the integration of Meta's Avatars with the Meta XR Interaction SDK in Unity. It serves as a practical guide for developers, demonstrating how to create custom hand poses and object interactions.

License

Notifications You must be signed in to change notification settings

oculus-samples/Unity-MetaXRInteractionSDK-AvatarSample

Repository files navigation

Avatar Samples Banner

Avatar Integration Samples

The Avatar Integration sample project contains sample scenes demonstrating the integration of Meta's Avatars SDK with the Meta XR Interaction SDK. These samples provide practical examples of creating custom hand poses and object interactions. The integration is handled by two new prefabs, OculusInteractionAvatarSdkManager and Avatar. You can find them in the Assets/Prefabs folder in Unity once you complete the Getting started section.

Licenses

The Oculus Integration package is released under the Oculus SDK License Agreement. The MIT licence applies to the files and assets in the Assets/ folder. Otherwise, if an individual file does not indicate which license it is subject to, then the Oculus License applies.

Getting started

  1. Clone this repo using either the green "Code" button above or this command in the terminal.

    git clone https://github.com/oculus-samples/Unity-MetaXRInteractionSDK-AvatarSample.git

    The repo is cloned to your computer. This may take a couple minutes depending on your internet speed.

  2. In Unity Hub, click Add > Add Project from Disk and select the Unity-MetaXRInteractionSDK-AvatarSample folder on your machine.

  3. Open the project in Unity version 2022.3.11f1 or newer, then load the Assets/Scenes/AvatarGrabExamples or Assets/Scenes/AvatarPokeExamples scenes.

Interactions

The project contains two sample scenes that showcase different interactions implemented with the Interaction SDK and integrated with Avatars.

  • AvatarGrabExamples - Demonstrates "Hand Grab" interactions with Avatars.
  • AvatarPokeExamples - Demonstrates "Poke" interactions with Avatars.

For information about the individual SDKs, see the Interaction SDK documentation and the Avatars SDK documentation.

About

This repository provides a comprehensive sample project showcasing the integration of Meta's Avatars with the Meta XR Interaction SDK in Unity. It serves as a practical guide for developers, demonstrating how to create custom hand poses and object interactions.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published