In this tutorial, you learn how to add a fully functional Interaction SDK User Interface (UI) to your Unity project. Interaction SDK includes prefabs for a curved UI and flat UI in the Interaction SDK package. The UIs look a bit different but function identically. The prefabs include the ability to swipe or scroll and select buttons via a poke interaction. To swap this for other interactions, like a ray interaction, see Use a Ray Interaction with a UI.
To see examples of the UIs in a pre-built scene, see the RayExamples scene or the PokeExamples scene.
Under Hierarchy, add an empty GameObject named CanvasModule by right-clicking in the hierarchy and selecting Create Empty.
Under Inspector, add a Pointable Canvas Module by clicking the Add Component button and searching for Pointable Canvas Module. This component tracks the state of each canvas component in the scene.
Under Project, search for FlatUnityCanvas. Ensure the search filter is set to either All or In Packages, since the default setting only searches your assets.
Drag the FlatUnityCanvas prefab from the search results into the Hierarchy.
Prepare to launch your scene by going to File > Build Settings and clicking the Add Open Scenes button.
Your scene is now ready to build.
Select File > Build And Run, or if you have a Link connected, click Play.
The flat UI appears in your scene.
Option B: Add a curved UI prefab
Under Project, search for CurvedUnityCanvas. Ensure the search filter is set to either All or In Packages, since the default setting only searches your assets.
Drag the CurvedUnityCanvas prefab from the search results into the Hierarchy.
Prepare to launch your scene by going to File > Build Settings and clicking the Add Open Scenes button.
Your scene is now ready to build.
Select File > Build And Run, or if you have a Link connected, click Play.