Motifs are blueprints for recurring ideas in the Horizon OS development community. They are not full applications, but rather recurring aspects of applications, which may require a collection of technical features and APIs to be achieved. Mixed Reality (MR) Motifs teach MR best practices, inspire developers, and spark new ideas.
MR Motifs Library
We are continuously working on new interesting MR content, to inspire you and introduce new features to you. Below is a library of published MR Motifs so far:
Note: If you plan to use the OpenXR plugin, be aware that the Avatar SDK does not yet support it. If you still would like to use the other MR Motif samples with OpenXR, make sure that, alongside the OpenXR plugin, you also install the Unity OpenXR Meta plugin (com.unity.xr.meta-openxr@2.1.0-pre.1), in order for the Depth API to work.
Starting scene
All scenes can be loaded from the MRMotifsHome scene, located in the project directory at Assets/MRMotifs/MRMotifsHome.unity. MRMotifsHome contains the Menu Panel prefab and script, which holds a list of all the other scenes and which displays scene controls for each scene. The menu panel can be toggled by using the menu (start) button/gesture using hands and controllers.
Optional multiplayer features
The MRMotifsHome scene contains a GameObject called [MR Motif] Quest Platform Setup, which contains an Entitlement Check class, implemented by the Multiplayer Building Blocks, and a class called InvitationAcceptanceHandlerMotif.
InvitationAcceptanceHandlerMotif is responsible for handling when a friend has been invited to a multiplayer scene, checking if they are entitled, and then determining which destination (scene) they have been invited to. Currently it contains destinations for the chess and the movie cowatching scenes of the Shared Activities in Mixed Reality motif. To incorporate this pattern into your own app, you will need to update those destinations with your own API and scene names. You can create destinations in the Meta Quest Developer Dashboard under Engagement > Destinations.