Develop
Develop
Select your platform

RayExamples Scene

Updated: Nov 3, 2025

Overview

The RayExamples scene showcases the RayInteractor interacting with a curved Unity canvas using the CanvasCylinder component.

How to get the sample

The RayExamples scene can be found in the Unity Project window under Assets > Samples > Meta XR Interaction SDK > VERSION > Example Scenes.
Note: You might need to import the sample from Interaction SDK’s Sample section in Unity Package Manager.

How to use the sample

  • Ray interactions with a Unity canvas.
  • Hand interactions use the system pointer pose and pinch for selection.
  • Ray interactions use the controller pose for ray direction and trigger for selection.
  • Curved surfaces that allow for various material types: Alpha Cutout, Alpha Blended, and Underlay (only viewable on-device)
Basic ray image

Learn more

Design guidelines

Did you find this page helpful?