Develop
Develop
Select your platform

Interaction SDK Samples for Unreal Engine

Updated: Jan 16, 2025
The Interaction SDK provides a comprehensive sample project with examples demonstrating the various interactions and features available.

Get the Sample Project

The Interaction SDK Sample Project can be downloaded from GitHub. You can open the project using either Meta’s fork of Unreal Engine or Unreal Engine from the Epic Games Launcher with both the MetaXR plugin and MetaXR Interaction SDK plugin installed. Complete details on downloading and running the sample are available in the readme for the project on GitHub.

Transformer Examples

The Transformers Examples level contains examples of items that can be grabbed using controllers or hands with physics as well as different transformation capabilities and constraints applied.
Transformer Examples Level
Features in this example level:
  • Items constrained to be moved around on a plane in space.
  • The lid of the box is constrained to be rotated around a single axis in space.
  • Items can be picked up using both hands and manipulated to scale them up and down. They can also be thrown or dropped with physics applied.
  • The doll can be picked up and thrown. The usr’s hand is hidden when interacting with the item.

Throw Examples

The Throw Examples level contains examples of items that can be grabbed, moved, and thrown using controllers or hands.
Throw Examples Level

Poke Examples

The Poke Examples level contains examples of virtual buttons that can be pressed using your finger with touch limiting that prevents your finger from visually going through the surface of the button.
Poke Examples Level
Features in this example level:
  • A button that recoils as you press it with touch limiting to keep your finger from appearing to go through the button.
  • A UI widget built with UMG that can be interacted with by poking it with a controller or your hand.
  • Buttons that change material parameters based on pointer events, such as hover or select.

Ray Examples

The Ray Examples level contains examples of items that can be interacted with from a distance by pointing at them using either a controller or your hand.
Ray Examples Level

Hand Pose Studio

The Hand Pose Studio level contains a toolset for authoring hand poses to use when setting up your own custom interactions, such as grabbing the handle of a coffee mug.
Hand Pose Studio Level
To preview a Hand Pose Data Asset, select it from the list and click Send Pose to Mannequin to demonstrate it on the displayed hands. Clicking Override from Pose poses the active hands on the VR rig with the selected hand pose.
To author new Hand Pose Data Assets:
  1. Select which hand to author the pose for by clicking Left or Right.
  2. Pose your hand in the shape you want to use for the hand pose.
  3. Click Generate New Hand Pose to create a Hand Pose Data Asset with that pose and handedness in your content library. You can also enable a lerp to be applied to that hand pose.
Note: The default location for Hand Pose Data Assets is OculusInteractionSamples/HandPoses. This can be changed in the properties of the UI Widget. Hand Pose Data Assetsmay have to be manually saved to persist between editor sessions.
Did you find this page helpful?