Using the OVR Framework in Unity
Last updated
Last updated
The Unity project includes an OVR Sample Scene that is designed to work right away with the Oculus Quest 2. The scene structure looks like this:
The majority of files are just related to the Unity Interaction Toolkit. There are two OVR components used in the scene. The Olfactory Epithelium is attached to the Main Camera. You can learn more about the Olfactory Epithelium here.
The Rose Game Object has the OdorantSphere.cs component attached to it. This is what interacts with the Olfactory Epithelium component to trigger the scent. The Rose also has a Rose.cs script attached. This is not necessary, it just demonstrates how you can listen for an event from the Odorant Sphere component. In this case, the Rose color changes from red to green when the scent is being triggered.